diff options
author | Ned Deily <nad@acm.org> | 2012-06-24 07:44:30 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2012-06-24 07:44:30 (GMT) |
commit | 4c2f4e5c7732fe6731c0cb5c8819824f4a169b13 (patch) | |
tree | cb432c0acda3f7dd0ea9cf755d621afbce02d6af /Mac/BuildScript/scripts/postflight.framework | |
parent | ec177c14d326a06204f0922bc61565b60589ba82 (diff) | |
download | cpython-4c2f4e5c7732fe6731c0cb5c8819824f4a169b13.zip cpython-4c2f4e5c7732fe6731c0cb5c8819824f4a169b13.tar.gz cpython-4c2f4e5c7732fe6731c0cb5c8819824f4a169b13.tar.bz2 |
Update compileall calls in OS X installer postflight script to
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+.
Diffstat (limited to 'Mac/BuildScript/scripts/postflight.framework')
-rwxr-xr-x | Mac/BuildScript/scripts/postflight.framework | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Mac/BuildScript/scripts/postflight.framework b/Mac/BuildScript/scripts/postflight.framework index 9fc9151..eb08297 100755 --- a/Mac/BuildScript/scripts/postflight.framework +++ b/Mac/BuildScript/scripts/postflight.framework @@ -8,14 +8,24 @@ FWK="/Library/Frameworks/Python.framework/Versions/@PYVER@" "${FWK}/bin/python@PYVER@" -Wi \ "${FWK}/lib/python${PYVER}/compileall.py" \ - -x badsyntax -x site-packages \ + -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" \ - -x badsyntax -x site-packages \ + -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}" |