mirror of
https://github.com/python-poetry/install.python-poetry.org.git
synced 2024-11-06 06:05:52 -05:00
Merge pull request #4433 from python-poetry/revert-system-env-changes
Fix the detection of the system environment with custom installer
This commit is contained in:
commit
2f316d632b
1 changed files with 4 additions and 0 deletions
|
@ -528,6 +528,10 @@ class Installer:
|
||||||
|
|
||||||
virtualenv.cli_run([str(env_path), "--clear"])
|
virtualenv.cli_run([str(env_path), "--clear"])
|
||||||
|
|
||||||
|
# We add a special file so that Poetry can detect
|
||||||
|
# its own virtual environment
|
||||||
|
env_path.joinpath("poetry_env").touch()
|
||||||
|
|
||||||
return env_path
|
return env_path
|
||||||
|
|
||||||
def make_bin(self, version: str) -> None:
|
def make_bin(self, version: str) -> None:
|
||||||
|
|
Loading…
Reference in a new issue