Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: d5c59763adc85b1ed931465bb29fc451f19516b7 authored by Larry Hastings on 09 March 2014, 11:13:05 UTC
Version bump for 3.4.0rc3.
Tip revision: d5c5976
postflight.framework
#!/bin/sh
#
# Recompile the .py files.
#

PYVER="@PYVER@"
FWK="/Library/Frameworks/Python.framework/Versions/@PYVER@"

"${FWK}/bin/python@PYVER@" -Wi \
    "${FWK}/lib/python${PYVER}/compileall.py" \
    -f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
    "${FWK}/lib/python${PYVER}"

"${FWK}/bin/python@PYVER@" -Wi -O \
    "${FWK}/lib/python${PYVER}/compileall.py" \
    -f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
    "${FWK}/lib/python${PYVER}"

"${FWK}/bin/python@PYVER@" -Wi \
    "${FWK}/lib/python${PYVER}/compileall.py" \
    -f -x badsyntax \
    "${FWK}/lib/python${PYVER}/site-packages"

"${FWK}/bin/python@PYVER@" -Wi -O \
    "${FWK}/lib/python${PYVER}/compileall.py" \
    -f -x badsyntax \
    "${FWK}/lib/python${PYVER}/site-packages"

chgrp -R admin "${FWK}"
chmod -R g+w "${FWK}"

exit 0
back to top