We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e072e2 commit cc3adadCopy full SHA for cc3adad
tests/lib/venv.py
@@ -1,5 +1,6 @@
1
import compileall
2
import shutil
3
+import subprocess
4
import sys
5
import textwrap
6
import venv as _venv
@@ -55,11 +56,16 @@ def _create(self, clear=False):
55
56
else:
57
# Create a new virtual environment.
58
if self._venv_type == "virtualenv":
- _virtualenv.create_environment(
59
- self.location,
60
- no_pip=True,
61
- no_wheel=True,
62
- no_setuptools=True,
+ subprocess.check_call(
+ [
+ sys.executable,
+ "-m",
63
+ "virtualenv",
64
+ "--no-pip",
65
+ "--no-wheel",
66
+ "--no-setuptools",
67
+ str(self.location),
68
+ ]
69
)
70
self._fix_virtualenv_site_module()
71
elif self._venv_type == "venv":
0 commit comments