From 708da61381fd9aaf4088223e2d2ce13ca7ffef90 Mon Sep 17 00:00:00 2001 From: Sandy Currier Date: Thu, 22 Sep 2022 11:02:02 -0400 Subject: [PATCH 1/2] guessing at a solution via remarks in the issue (#24) discussion --- install-poetry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install-poetry.py b/install-poetry.py index b6d32d4..c4c65d1 100644 --- a/install-poetry.py +++ b/install-poetry.py @@ -306,7 +306,8 @@ class VirtualEnvironment: import ensurepip # noqa: F401 import venv - builder = venv.EnvBuilder(clear=True, with_pip=True, symlinks=False) + builder = venv.EnvBuilder(clear=True, with_pip=True, symlinks=False) if WINDOWS else \ + venv.EnvBuilder(clear=True, with_pip=True, symlinks=True) context = builder.ensure_directories(target) if ( From 5eaaacd20870acf76faabd3faca3e7df335b81ff Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 22 Sep 2022 15:08:55 +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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install-poetry.py b/install-poetry.py index c4c65d1..c4e370b 100644 --- a/install-poetry.py +++ b/install-poetry.py @@ -306,8 +306,11 @@ class VirtualEnvironment: import ensurepip # noqa: F401 import venv - builder = venv.EnvBuilder(clear=True, with_pip=True, symlinks=False) if WINDOWS else \ - venv.EnvBuilder(clear=True, with_pip=True, symlinks=True) + builder = ( + venv.EnvBuilder(clear=True, with_pip=True, symlinks=False) + if WINDOWS + else venv.EnvBuilder(clear=True, with_pip=True, symlinks=True) + ) context = builder.ensure_directories(target) if (