# Ensure we fail the job if any steps fail.
set -eu -o pipefail
-virtualenv -p python3 /tmp/pypi
-PATH=/tmp/pypi/bin:$PATH
+# shellcheck disable=SC1090
+source ~/lf-env.sh
-echo "INFO: installing twine to check distributions"
-pip install -q twine
+# Version controlled by JJB_VERSION
+lf-activate-venv setuptools twine wheel readline
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