Skip to content

Commit d52b2f5

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Ease python 3 classifier check in check_python3_support_for_package_local"
2 parents 0d7df32 + ddb6179 commit d52b2f5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

inc/python

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function check_python3_support_for_package_local {
101101
cd $name
102102
set +e
103103
classifier=$(python setup.py --classifiers \
104-
| grep 'Programming Language :: Python :: 3$')
104+
| grep 'Programming Language :: Python :: 3')
105105
set -e
106106
echo $classifier
107107
}
@@ -297,6 +297,8 @@ function pip_install {
297297
echo "Automatically using $PYTHON3_VERSION version to install $package_dir based on local package settings"
298298
sudo_pip="$sudo_pip LC_ALL=en_US.UTF-8"
299299
cmd_pip=$(get_pip_command $PYTHON3_VERSION)
300+
else
301+
echo "WARNING: Did not find python 3 classifier for local package $package_dir"
300302
fi
301303
fi
302304
else
@@ -307,6 +309,8 @@ function pip_install {
307309
echo "Automatically using $PYTHON3_VERSION version to install $package based on remote package settings"
308310
sudo_pip="$sudo_pip LC_ALL=en_US.UTF-8"
309311
cmd_pip=$(get_pip_command $PYTHON3_VERSION)
312+
else
313+
echo "WARNING: Did not find python 3 classifier for remote package $package_dir"
310314
fi
311315
fi
312316
fi

0 commit comments

Comments
 (0)