diff --git a/scripts/synapse_sytest.sh b/scripts/synapse_sytest.sh index d13c8b2d1..c9ad0f1a7 100755 --- a/scripts/synapse_sytest.sh +++ b/scripts/synapse_sytest.sh @@ -114,10 +114,11 @@ if [ -n "$OFFLINE" ]; then # if we're in offline mode, just put synapse into the virtualenv, and # hope that the deps are up-to-date. # - # (`pip install -e` likes to reinstall setuptools even if it's already installed, - # so we just run setup.py explicitly.) - # - (cd /src && /venv/bin/python setup.py -q develop) + # --no-use-pep517 works around what appears to be a pip issue + # (https://github.com/pypa/pip/issues/5402 possibly) where pip wants + # to reinstall any requirements for the build system, even if they are + # already installed. + /venv/bin/pip install --no-index --no-use-pep517 /src else # We've already created the virtualenv, but lets double check we have all # deps.