Skip to content
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
24 changes: 17 additions & 7 deletions libexec/bkpyvenv
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,23 @@ stage)
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
else
# --copies: copy the python binary into the venv instead of
# symlinking it. With the default --symlinks behavior the resulting
# `$PREFIX/venv/bin/python` is an absolute symlink to
# `/opt/python.org/v<ver>/bin/python`, which breaks any bottle
# installed somewhere other than /opt (eg. /usr/local/pkgs/...
# via pkgm). See pkgxdev/pantry#8487 for the original report.
python -m venv --copies "$PREFIX"/venv
case "$(uname -s)" in
Linux)
# --copies: copy the python binary into the venv instead of
# symlinking it. With the default --symlinks behavior the resulting
# `$PREFIX/venv/bin/python` is an absolute symlink to
# `/opt/python.org/v<ver>/bin/python`, which breaks any bottle
# installed somewhere other than /opt (eg. /usr/local/pkgs/...
# via pkgm). See pkgxdev/pantry#8487 for the original report.
python -m venv --copies "$PREFIX"/venv
;;
*)
# macOS: --copies breaks signed/framework python binaries.
# The pkgm-relocation problem #8487 doesn't apply on darwin in
# the same way (different runtime resolution)
Comment on lines +50 to +53
python -m venv "$PREFIX"/venv
;;
esac
fi
;;
seal)
Expand Down
Loading