From 7d4e9d8e1baaf8c4e990a03540666c0dd2f3588d Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Thu, 22 Oct 2020 15:12:20 -0700 Subject: [PATCH] Fix test_sdists.sh. --- tests/letstest/scripts/test_sdists.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/letstest/scripts/test_sdists.sh b/tests/letstest/scripts/test_sdists.sh index 0f2b0ad0e..dd8db29e2 100755 --- a/tests/letstest/scripts/test_sdists.sh +++ b/tests/letstest/scripts/test_sdists.sh @@ -15,7 +15,11 @@ if command -v python && [ $(python -V 2>&1 | cut -d" " -f 2 | cut -d. -f1,2 | se fi # setup venv -CERTBOT_PIP_NO_BINARY=:all: tools/venv3.py --requirement letsencrypt-auto-source/pieces/dependency-requirements.txt +# We strip the hashes because the venv creation script includes unhashed +# constraints in the commands given to pip and the mix of hashed and unhashed +# packages makes pip error out. +tools/strip_hashes.py letsencrypt-auto-source/pieces/dependency-requirements.txt > unhashed-requirements.txt +CERTBOT_PIP_NO_BINARY=:all: tools/venv3.py --requirement unhashed-requirements.txt . "$VENV_PATH/bin/activate" # pytest is needed to run tests on some of our packages so we install a pinned version here. tools/pip_install.py pytest