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

build.hooks.make-venv: Replace symlink to Python interpreter with a binary wrapper #243

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

adisbladis
Copy link
Member

The venv module creates a symlink to the Python interpreter, but this breaks the venv if you're using a symlink pointing to the virtualenv itself.

By replacing the Python interpreter symlink with a wrapper it can be properly linked to in another derivation.

cc @TyberiusPrime

@adisbladis adisbladis force-pushed the venv-interpreter-wrapped branch 3 times, most recently from 900e2ba to 17c33b7 Compare January 26, 2025 08:10
…inary wrapper

The venv module creates a symlink to the Python interpreter,
but this breaks the venv if you're using a symlink pointing
to the virtualenv itself.

By replacing the Python interpreter symlink with a wrapper it can be
properly linked to in another derivation.
@adisbladis adisbladis force-pushed the venv-interpreter-wrapped branch from 17c33b7 to be1c9ad Compare January 26, 2025 08:13
@adisbladis adisbladis merged commit 002331d into master Jan 26, 2025
101 checks passed
@adisbladis adisbladis deleted the venv-interpreter-wrapped branch January 26, 2025 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant