Revise PyPI release jobs to use a staging index
[releng/global-jjb.git] / shell / pypi-dist-build.sh
index 27b4b3d..9341a1f 100644 (file)
@@ -16,16 +16,16 @@ echo "---> pypi-dist-build.sh"
 # Ensure we fail the job if any steps fail.
 set -eu -o pipefail
 
+echo "INFO: creating virtual environment"
 virtualenv -p python3 /tmp/pypi
 PATH=/tmp/pypi/bin:$PATH
-
-echo "INFO: installing twine to check distributions"
-pip install -q twine
+pipup="python -m pip install -q --upgrade setuptools twine wheel"
+echo "INFO: $pipup"
+$pipup
 
 bdist=""
 if $BUILD_BDIST_WHEEL; then
-    echo "INFO: installing wheel to build binary distribution"
-    pip install -q wheel
+    echo "INFO: adding wheel to build binary distribution"
     bdist="bdist_wheel"
 fi