From 28f4f9f527704026e8f4da4660853fea6e7d4c79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Eustace?= Date: Tue, 24 Aug 2021 13:56:26 +0200 Subject: [PATCH] Fix the detection of the system environment with custom installer --- install-poetry.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install-poetry.py b/install-poetry.py index 9980ff5..2eb61b5 100644 --- a/install-poetry.py +++ b/install-poetry.py @@ -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: