From 902883d818ae7fe91ca81071cbe5ba31a7806ea3 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 23 Sep 2021 13:11:09 -0700 Subject: [PATCH] =?UTF-8?q?setup=5Fvenv:=20Skip=20virtualenv=E2=80=99s=20a?= =?UTF-8?q?utomatic=20download=20of=20setuptools.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It recently started failing on Debian 10 (buster). We immediately follow this by replacing these packages with our own versions from pip.txt, anyway. Signed-off-by: Anders Kaseorg --- scripts/lib/setup_venv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/setup_venv.py b/scripts/lib/setup_venv.py index 969132c3f1..4c77366045 100644 --- a/scripts/lib/setup_venv.py +++ b/scripts/lib/setup_venv.py @@ -330,7 +330,7 @@ def do_setup_virtualenv(venv_path: str, requirements_file: str) -> None: if not try_to_copy_venv(venv_path, new_packages): # Create new virtualenv. run_as_root(["mkdir", "-p", venv_path]) - run_as_root(["virtualenv", "-p", "python3", venv_path]) + run_as_root(["virtualenv", "-p", "python3", "--no-download", venv_path]) run_as_root(["chown", "-R", f"{os.getuid()}:{os.getgid()}", venv_path]) create_log_entry(get_logfile_name(venv_path), "", set(), new_packages)