From 6249cd0237308c29d387b41187bfc5a1f54140cb Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Tue, 9 Apr 2019 07:10:19 -0700 Subject: [PATCH] Use VIRTUALENV_NO_DOWNLOAD in tools/venv.py. (#6931) --- tools/venv.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/venv.py b/tools/venv.py index 3fe8e05fb..4e205c3a5 100755 --- a/tools/venv.py +++ b/tools/venv.py @@ -13,7 +13,10 @@ def create_venv(venv_path): """ python2 = _venv_common.find_python_executable(2) command = [sys.executable, '-m', 'virtualenv', '--python', python2, venv_path] - _venv_common.subprocess_with_print(command) + + environ = os.environ.copy() + environ['VIRTUALENV_NO_DOWNLOAD'] = '1' + _venv_common.subprocess_with_print(command, environ) def main(pip_args=None):