Skip to content

Commit 28f4f9f

Browse files
committed
Fix the detection of the system environment with custom installer
1 parent 8c5f252 commit 28f4f9f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

install-poetry.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,10 @@ def make_env(self, version: str) -> Path:
528528

529529
virtualenv.cli_run([str(env_path), "--clear"])
530530

531+
# We add a special file so that Poetry can detect
532+
# its own virtual environment
533+
env_path.joinpath("poetry_env").touch()
534+
531535
return env_path
532536

533537
def make_bin(self, version: str) -> None:

0 commit comments

Comments
 (0)