Skip to content

Commit 2f316d6

Browse files
authored
Merge pull request #4433 from python-poetry/revert-system-env-changes
Fix the detection of the system environment with custom installer
2 parents 8c5f252 + 28f4f9f commit 2f316d6

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)