diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 059bcdf5..a4c6e511 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1470,7 +1470,9 @@ 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) - mv -f "${PREFIX_PATH}/bin" "${PREFIX_PATH}/bin.orig" + if [ ! -e "${PREFIX_PATH}/bin.orig" ]; then + mv -f "${PREFIX_PATH}/bin" "${PREFIX_PATH}/bin.orig" + fi fi # Only symlinks are installed in ${PREFIX_PATH}/bin ln -fs "${PREFIX_PATH}/Python.framework/Versions/Current/bin" "${PREFIX_PATH}/bin"