diff --git a/cibuildwheel/linux.py b/cibuildwheel/linux.py index 09642734..e31e00ca 100644 --- a/cibuildwheel/linux.py +++ b/cibuildwheel/linux.py @@ -121,7 +121,7 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef # there are no dependencies that were pulled in at build time. pip install {dependency_install_flags} virtualenv venv_dir=`mktemp -d`/venv - python -m virtualenv "$venv_dir" + python -m virtualenv --no-download "$venv_dir" # run the tests in a subshell to keep that `activate` # script from polluting the env diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index f181921d..383f6453 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -140,7 +140,7 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef # there are no dependencies that were pulled in at build time. call(['pip', 'install', 'virtualenv'] + dependency_constraint_flags, env=env) venv_dir = tempfile.mkdtemp() - call(['python', '-m', 'virtualenv', venv_dir], env=env) + call(['python', '-m', 'virtualenv', '--no-download', venv_dir], env=env) virtualenv_env = env.copy() virtualenv_env['PATH'] = os.pathsep.join([ diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index b90c7e91..b62e7801 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -152,7 +152,7 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef # there are no dependencies that were pulled in at build time. shell(['pip', 'install', 'virtualenv'] + dependency_constraint_flags, env=env) venv_dir = tempfile.mkdtemp() - shell(['python', '-m', 'virtualenv', venv_dir], env=env) + shell(['python', '-m', 'virtualenv', '--no-download', venv_dir], env=env) virtualenv_env = env.copy() virtualenv_env['PATH'] = os.pathsep.join([