mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-15 23:13:52 -05:00
Link python*-config into VE (#460)
Required to build binaries that link against Python. Carl Meyer, the champion for PEP 0405, has confirmed that there isn't a particular reason why `venv` doesn't do that.
This commit is contained in:
@@ -600,6 +600,15 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
(
|
||||
shopt -s nullglob
|
||||
for extra_binary in "$PREFIX"/bin/python*-config; do
|
||||
extra_binary_linkname="$VIRTUALENV_PATH/bin/$(basename $extra_binary)"
|
||||
[[ -e "$extra_binary_linkname" ]] || \
|
||||
ln -s "$extra_binary" "$extra_binary_linkname"
|
||||
done
|
||||
)
|
||||
|
||||
## Create symlink in the `versions` directory for backward compatibility
|
||||
if [ -d "${VIRTUALENV_PATH}" ] && [ -n "${COMPAT_VIRTUALENV_PATH}" ]; then
|
||||
ln -fs "${VIRTUALENV_PATH}" "${COMPAT_VIRTUALENV_PATH}"
|
||||
|
||||
Reference in New Issue
Block a user