Commit 4955758
fix(bkpyvenv): create relocatable venvs via --copies
Without the flag, `python -m venv` defaults to --symlinks on Linux,
so the resulting `$PREFIX/venv/bin/python` is an absolute symlink to
the python.org bottle's `/opt/python.org/v<X>/bin/python`. Any bottle
installed outside `/opt/` (eg. `/usr/local/pkgs/...` via pkgm) ends
up with a broken venv whose python entry point doesn't exist.
Pass `--copies` so the python binary is physically copied into the
venv instead of symlinked. This is the standard relocation pattern
for python venvs and matches what recipes that opt out of `bkpyvenv`
already do by hand (eg. pyqt5's recipe calls
`python -m venv --copies`).
Closes pkgxdev/pantry#8487.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 47eb6dd commit 4955758
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| |||
0 commit comments