cpython/Mac/BuildScript/scripts/postflight.framework

33 lines
851 B
Plaintext
Raw Normal View History

2006-06-07 15:58:42 -03:00
#!/bin/sh
#
# Recompile the .py files.
#
PYVER="@PYVER@"
FWK="/Library/Frameworks/Python.framework/Versions/@PYVER@"
2006-06-07 15:58:42 -03:00
"${FWK}/bin/python@PYVER@" -Wi -tt \
2006-06-07 15:58:42 -03:00
"${FWK}/lib/python${PYVER}/compileall.py" \
-f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
2006-06-07 15:58:42 -03:00
"${FWK}/lib/python${PYVER}"
"${FWK}/bin/python@PYVER@" -Wi -tt -O \
2006-06-07 15:58:42 -03:00
"${FWK}/lib/python${PYVER}/compileall.py" \
-f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
2006-06-07 15:58:42 -03:00
"${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}"
2006-06-07 15:58:42 -03:00
chmod -R g+w "${FWK}"
exit 0