Mercurial > cpython-lru_cache-weakref
diff Mac/BuildScript/scripts/postflight.framework @ 77676:99708bb33bf7
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+.
| author | Ned Deily <nad@acm.org> |
|---|---|
| date | Sun, 24 Jun 2012 00:44:30 -0700 |
| parents | 9386e3dd5700 |
| children |
line wrap: on
line diff
--- a/Mac/BuildScript/scripts/postflight.framework Sun Jun 24 03:27:43 2012 -0400 +++ b/Mac/BuildScript/scripts/postflight.framework Sun Jun 24 00:44:30 2012 -0700 @@ -8,14 +8,24 @@ "${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}"
