Merge pull request #700 from yyuu/issue687

Remove `bin.orig` if it already exists
This commit is contained in:
Yamashita, Yuu 2016-09-14 09:56:39 +09:00 committed by GitHub
commit 8305eaefe3

View file

@ -1470,6 +1470,7 @@ 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)
rm -rf "${PREFIX_PATH}/bin.orig"
mv -f "${PREFIX_PATH}/bin" "${PREFIX_PATH}/bin.orig"
fi
# Only symlinks are installed in ${PREFIX_PATH}/bin