Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Mac/BuildScript/scripts/postflight.documentation

    r2 r391  
    22
    33PYVER="@PYVER@"
     4FWK="/Library/Frameworks/Python.framework/Versions/${PYVER}"
     5FWK_DOCDIR_SUBPATH="Resources/English.lproj/Documentation"
     6FWK_DOCDIR="${FWK}/${FWK_DOCDIR_SUBPATH}"
     7APPDIR="/Applications/Python ${PYVER}"
     8SHARE_DIR="${FWK}/share"
     9SHARE_DOCDIR="${SHARE_DIR}/doc/python${PYVER}"
     10SHARE_DOCDIR_TO_FWK="../../.."
    411
    5 if [ -d /Developer/Documentation ]; then
    6         if [ ! -d /Developer/Documentation/Python ]; then
    7                 mkdir -p /Developer/Documentation/Python
    8         fi
     12# make link in /Applications/Python m.n/ for Finder users
     13if [ -d "${APPDIR}" ]; then
     14    ln -fhs "${FWK_DOCDIR}/index.html" "${APPDIR}/Python Documentation.html"
     15fi
    916
    10         ln -fhs /Library/Frameworks/Python.framework/Versions/${PYVER}/Resources/English.lproj/Documentation "/Developer/Documentation/Python/Reference Documentation @PYVER@"
     17# make share/doc link in framework for command line users
     18if [ -d "${SHARE_DIR}" ]; then
     19    mkdir -m 775 -p "${SHARE_DOCDIR}"
     20    # make relative link to html doc directory
     21    ln -fhs "${SHARE_DOCDIR_TO_FWK}/${FWK_DOCDIR_SUBPATH}" "${SHARE_DOCDIR}/html"
    1122fi
     23
  • python/trunk/Mac/BuildScript/scripts/postflight.framework

    r2 r391  
    99"${FWK}/bin/python@PYVER@" -Wi -tt \
    1010    "${FWK}/lib/python${PYVER}/compileall.py" \
    11     -x badsyntax -x site-packages \
     11    -f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
    1212    "${FWK}/lib/python${PYVER}"
    1313
    1414"${FWK}/bin/python@PYVER@" -Wi -tt -O \
    1515    "${FWK}/lib/python${PYVER}/compileall.py" \
    16     -x badsyntax -x site-packages \
     16    -f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
    1717    "${FWK}/lib/python${PYVER}"
     18
     19"${FWK}/bin/python@PYVER@" -Wi \
     20    "${FWK}/lib/python${PYVER}/compileall.py" \
     21    -f -x badsyntax \
     22    "${FWK}/lib/python${PYVER}/site-packages"
     23
     24"${FWK}/bin/python@PYVER@" -Wi -O \
     25    "${FWK}/lib/python${PYVER}/compileall.py" \
     26    -f -x badsyntax \
     27    "${FWK}/lib/python${PYVER}/site-packages"
    1828
    1929chgrp -R admin "${FWK}"
  • python/trunk/Mac/BuildScript/scripts/postflight.patch-profile

    r2 r391  
    2121BSH="`basename "${theShell}"`"
    2222case "${BSH}" in
    23 bash|ksh|sh|*csh)
     23bash|ksh|sh|*csh|zsh)
    2424        if [ `id -ur` = 0 ]; then
    2525                P=`su - ${USER} -c 'echo A-X-4-X@@$PATH@@X-4-X-A' | grep 'A-X-4-X@@.*@@X-4-X-A' | sed -e 's/^A-X-4-X@@//g' -e 's/@@X-4-X-A$//g'`
     
    5858        fi
    5959        echo "" >> "${RC}"
    60         echo "# Setting PATH for MacPython ${PYVER}" >> "${RC}"
     60        echo "# Setting PATH for Python ${PYVER}" >> "${RC}"
    6161        echo "# The orginal version is saved in .cshrc.pysave" >> "${RC}"
    6262        echo "set path=(${PYTHON_ROOT}/bin "'$path'")" >> "${RC}"
     
    7777        fi
    7878        ;;
     79zsh)
     80        PR="${HOME}/.zprofile"
     81        ;;
    7982*sh)
    8083        PR="${HOME}/.profile"
     
    8790fi
    8891echo "" >> "${PR}"
    89 echo "# Setting PATH for MacPython ${PYVER}" >> "${PR}"
     92echo "# Setting PATH for Python ${PYVER}" >> "${PR}"
    9093echo "# The orginal version is saved in `basename ${PR}`.pysave" >> "${PR}"
    9194echo 'PATH="'"${PYTHON_ROOT}/bin"':${PATH}"' >> "${PR}"
Note: See TracChangeset for help on using the changeset viewer.