mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Remove bin.orig
if it already exists (fixes #687)
The directory may exist if the `build_package_symlink_version_suffix` ran multiple times.
This commit is contained in:
parent
36647a66de
commit
bc4abf06bd
1 changed files with 2 additions and 3 deletions
|
@ -1470,9 +1470,8 @@ build_package_symlink_version_suffix() {
|
|||
if [[ "$PYTHON_CONFIGURE_OPTS" == *"--enable-framework"* ]]; then
|
||||
if [ -e "${PREFIX_PATH}/bin" ]; then
|
||||
# Always create `bin` as symlink to framework path if the version was built with `--enable-frameowrk` (#590)
|
||||
if [ ! -e "${PREFIX_PATH}/bin.orig" ]; then
|
||||
mv -f "${PREFIX_PATH}/bin" "${PREFIX_PATH}/bin.orig"
|
||||
fi
|
||||
rm -rf "${PREFIX_PATH}/bin.orig"
|
||||
mv -f "${PREFIX_PATH}/bin" "${PREFIX_PATH}/bin.orig"
|
||||
fi
|
||||
# Only symlinks are installed in ${PREFIX_PATH}/bin
|
||||
ln -fs "${PREFIX_PATH}/Python.framework/Versions/Current/bin" "${PREFIX_PATH}/bin"
|
||||
|
|
Loading…
Reference in a new issue