From 377210d1ef918eb2f00424eed758980f018f88e2 Mon Sep 17 00:00:00 2001 From: bizzy Date: Tue, 6 Dec 2022 18:04:08 +0000 Subject: [PATCH 1/2] Solve install issue for unix --- install-poetry.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install-poetry.py b/install-poetry.py index b6d32d4..5af309e 100644 --- a/install-poetry.py +++ b/install-poetry.py @@ -306,7 +306,11 @@ def make(cls, target: Path) -> "VirtualEnvironment": import ensurepip # noqa: F401 import venv - builder = venv.EnvBuilder(clear=True, with_pip=True, symlinks=False) + if os.name == 'nt': + use_symlinks = False + else: + use_symlinks = True + builder = venv.EnvBuilder(clear=True, with_pip=True, symlinks=use_symlinks) context = builder.ensure_directories(target) if ( From cd04de478172564ad7c9f999938412c334dfbac6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 6 Dec 2022 18:20:48 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- install-poetry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-poetry.py b/install-poetry.py index 5af309e..2d40eef 100644 --- a/install-poetry.py +++ b/install-poetry.py @@ -306,7 +306,7 @@ def make(cls, target: Path) -> "VirtualEnvironment": import ensurepip # noqa: F401 import venv - if os.name == 'nt': + if os.name == "nt": use_symlinks = False else: use_symlinks = True