mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:32:13 +02:00
Use VIRTUALENV_NO_DOWNLOAD in tools/venv.py. (#6931)
This commit is contained in:
committed by
Adrien Ferrand
parent
c77159a30c
commit
6249cd0237
+4
-1
@@ -13,7 +13,10 @@ def create_venv(venv_path):
|
|||||||
"""
|
"""
|
||||||
python2 = _venv_common.find_python_executable(2)
|
python2 = _venv_common.find_python_executable(2)
|
||||||
command = [sys.executable, '-m', 'virtualenv', '--python', python2, venv_path]
|
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):
|
def main(pip_args=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user