Browse code

Merge "Ease python 3 classifier check in check_python3_support_for_package_local"

Zuul authored on 2019/03/22 14:22:30
Showing 1 changed files
... ...
@@ -101,7 +101,7 @@ function check_python3_support_for_package_local {
101 101
     cd $name
102 102
     set +e
103 103
     classifier=$(python setup.py --classifiers \
104
-        | grep 'Programming Language :: Python :: 3$')
104
+        | grep 'Programming Language :: Python :: 3')
105 105
     set -e
106 106
     echo $classifier
107 107
 }
... ...
@@ -297,6 +297,8 @@ function pip_install {
297 297
                             echo "Automatically using $PYTHON3_VERSION version to install $package_dir based on local package settings"
298 298
                             sudo_pip="$sudo_pip LC_ALL=en_US.UTF-8"
299 299
                             cmd_pip=$(get_pip_command $PYTHON3_VERSION)
300
+                        else
301
+                            echo "WARNING: Did not find python 3 classifier for local package $package_dir"
300 302
                         fi
301 303
                     fi
302 304
                 else
... ...
@@ -307,6 +309,8 @@ function pip_install {
307 307
                         echo "Automatically using $PYTHON3_VERSION version to install $package based on remote package settings"
308 308
                         sudo_pip="$sudo_pip LC_ALL=en_US.UTF-8"
309 309
                         cmd_pip=$(get_pip_command $PYTHON3_VERSION)
310
+                    else
311
+                        echo "WARNING: Did not find python 3 classifier for remote package $package_dir"
310 312
                     fi
311 313
                 fi
312 314
             fi