Browse Source

Always create `bin` as symlink to framework path if the version was built with `--enable-frameowrk` (#590)

Actually I'm not 100% sure what was going on, but it seems CPython build
script may create `bin` as directory instead of symlink even if
`--enable-framework` was specified.
pull/614/merge
Yamashita, Yuu 8 years ago
parent
commit
bc8dba4bea
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      plugins/python-build/bin/python-build

+ 5
- 1
plugins/python-build/bin/python-build View File

@ -1467,7 +1467,11 @@ apply_python_patch() {
}
build_package_symlink_version_suffix() {
if [[ "$PYTHON_CONFIGURE_OPTS" == *"--enable-framework"* ]] && [ ! -e "${PREFIX_PATH}/bin" ]; then
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"
fi
# Only symlinks are installed in ${PREFIX_PATH}/bin
ln -fs "${PREFIX_PATH}/Python.framework/Versions/Current/bin" "${PREFIX_PATH}/bin"
fi

Loading…
Cancel
Save