From 99edbfaa5e217463200dbc7a1dd1dc45ec1238a3 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Mon, 9 Jul 2018 15:27:20 -0400 Subject: [PATCH] Cannot build the wheelhouse before getting certifi --- .circleci/setup-virtualenv.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.circleci/setup-virtualenv.sh b/.circleci/setup-virtualenv.sh index dcd9ff812..2bead1deb 100755 --- a/.circleci/setup-virtualenv.sh +++ b/.circleci/setup-virtualenv.sh @@ -10,17 +10,22 @@ shift || : # non-root user. See below. sudo --set-home -u nobody virtualenv --python python2.7 /tmp/tests -# Populate the wheelhouse, if necessary. -/tmp/tests/bin/pip wheel --wheel-dir "${WHEELHOUSE_PATH}" /tmp/project - # Get "certifi" to avoid bug #2913. Basically if a `setup_requires=...` causes # a package to be installed (with setuptools) then it'll fail on certain # platforms (travis's OX-X 10.12, Slackware 14.2) because PyPI's TLS # requirements (TLS >= 1.2) are incompatible with the old TLS clients # available to those systems. Installing it ahead of time (with pip) avoids -# this problem. +# this problem. Make sure this step comes before any other attempts to +# install things using pip! sudo --set-home -u nobody /tmp/tests/bin/pip install certifi +# Populate the wheelhouse, if necessary. +sudo --set-home -u nobody /tmp/tests/bin/pip \ + wheel \ + --wheel-dir "${WHEELHOUSE_PATH}" \ + /tmp/project + + # Python packages we need to support the test infrastructure. *Not* packages # Tahoe-LAFS itself (implementation or test suite) need. TEST_DEPS="tox codecov"