提交 cc3adad1 编写于 作者: P Paul Moore

Don't use virtualenv internals in tests

上级 5e072e2e
import compileall
import shutil
import subprocess
import sys
import textwrap
import venv as _venv
......@@ -55,11 +56,16 @@ class VirtualEnvironment:
else:
# Create a new virtual environment.
if self._venv_type == "virtualenv":
_virtualenv.create_environment(
self.location,
no_pip=True,
no_wheel=True,
no_setuptools=True,
subprocess.check_call(
[
sys.executable,
"-m",
"virtualenv",
"--no-pip",
"--no-wheel",
"--no-setuptools",
str(self.location),
]
)
self._fix_virtualenv_site_module()
elif self._venv_type == "venv":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册