mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Fix Pytest --use-venv init
This commit is contained in:
parent
c05884a714
commit
4abb8ac07b
|
@ -124,7 +124,7 @@ class VirtualEnvironment:
|
||||||
)
|
)
|
||||||
elif self._venv_type == "venv":
|
elif self._venv_type == "venv":
|
||||||
builder = _venv.EnvBuilder()
|
builder = _venv.EnvBuilder()
|
||||||
context = builder.ensure_directories(self.location)
|
context = builder.ensure_directories(os.fspath(self.location))
|
||||||
builder.create_configuration(context)
|
builder.create_configuration(context)
|
||||||
builder.setup_python(context)
|
builder.setup_python(context)
|
||||||
self.site.mkdir(parents=True, exist_ok=True)
|
self.site.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
Loading…
Reference in a new issue