mirror of
https://github.com/python-poetry/install.python-poetry.org.git
synced 2024-11-06 06:05:52 -05:00
Fix the detection of the system environment with custom installer
This commit is contained in:
parent
8c5f2528f6
commit
28f4f9f527
1 changed files with 4 additions and 0 deletions
|
@ -528,6 +528,10 @@ class Installer:
|
|||
|
||||
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
|
||||
|
||||
def make_bin(self, version: str) -> None:
|
||||
|
|
Loading…
Reference in a new issue