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