mirror of
https://github.com/python/cpython.git
synced 2024-11-27 23:47:29 +01:00
4c2f4e5c77
properly skip uncompilable files and to compile existing files in site-packages if reinstalling. Also, no longer attempt to install a documentation link in /Developer as that no longer necessarily exists with Xcode 4.3+.
33 lines
843 B
Bash
Executable File
33 lines
843 B
Bash
Executable File
#!/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
|