Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve env path in case windows redirects installation path #18

Merged
merged 1 commit into from
Jul 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion install-poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,15 @@ def make(cls, target: Path) -> "VirtualEnvironment":
import venv

builder = venv.EnvBuilder(clear=True, with_pip=True, symlinks=False)
builder.ensure_directories(target)
context = builder.ensure_directories(target)

if (
WINDOWS
and hasattr(context, "env_exec_cmd")
and context.env_exe != context.env_exec_cmd
):
target = target.resolve()
neersighted marked this conversation as resolved.
Show resolved Hide resolved

builder.create(target)
except ImportError:
# fallback to using virtualenv package if venv is not available, eg: ubuntu
Expand Down