mirror of
https://github.com/python/cpython.git
synced 2024-11-27 23:47:29 +01:00
4c2f4e5c77
properly skip uncompilable files and to compile existing files in site-packages if reinstalling. Also, no longer attempt to install a documentation link in /Developer as that no longer necessarily exists with Xcode 4.3+.
24 lines
752 B
Bash
Executable File
24 lines
752 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PYVER="@PYVER@"
|
|
FWK="/Library/Frameworks/Python.framework/Versions/${PYVER}"
|
|
FWK_DOCDIR_SUBPATH="Resources/English.lproj/Documentation"
|
|
FWK_DOCDIR="${FWK}/${FWK_DOCDIR_SUBPATH}"
|
|
APPDIR="/Applications/Python ${PYVER}"
|
|
SHARE_DIR="${FWK}/share"
|
|
SHARE_DOCDIR="${SHARE_DIR}/doc/python${PYVER}"
|
|
SHARE_DOCDIR_TO_FWK="../../.."
|
|
|
|
# make link in /Applications/Python m.n/ for Finder users
|
|
if [ -d "${APPDIR}" ]; then
|
|
ln -fhs "${FWK_DOCDIR}/index.html" "${APPDIR}/Python Documentation.html"
|
|
fi
|
|
|
|
# make share/doc link in framework for command line users
|
|
if [ -d "${SHARE_DIR}" ]; then
|
|
mkdir -p "${SHARE_DOCDIR}"
|
|
# make relative link to html doc directory
|
|
ln -fhs "${SHARE_DOCDIR_TO_FWK}/${FWK_DOCDIR_SUBPATH}" "${SHARE_DOCDIR}/html"
|
|
fi
|
|
|