mirror of https://github.com/python/cpython
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
476 B
22 lines
476 B
#!/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" \
|
|
-x badsyntax -x site-packages \
|
|
"${FWK}/lib/python${PYVER}"
|
|
|
|
"${FWK}/bin/python@PYVER@" -Wi -O \
|
|
"${FWK}/lib/python${PYVER}/compileall.py" \
|
|
-x badsyntax -x site-packages \
|
|
"${FWK}/lib/python${PYVER}"
|
|
|
|
chgrp -R admin "${FWK}"
|
|
chmod -R g+w "${FWK}"
|
|
|
|
exit 0
|