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.

32 lines
851 B

  1. #!/bin/sh
  2. #
  3. # Recompile the .py files.
  4. #
  5. PYVER="@PYVER@"
  6. FWK="/Library/Frameworks/Python.framework/Versions/@PYVER@"
  7. "${FWK}/bin/python@PYVER@" -Wi -tt \
  8. "${FWK}/lib/python${PYVER}/compileall.py" \
  9. -f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
  10. "${FWK}/lib/python${PYVER}"
  11. "${FWK}/bin/python@PYVER@" -Wi -tt -O \
  12. "${FWK}/lib/python${PYVER}/compileall.py" \
  13. -f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
  14. "${FWK}/lib/python${PYVER}"
  15. "${FWK}/bin/python@PYVER@" -Wi \
  16. "${FWK}/lib/python${PYVER}/compileall.py" \
  17. -f -x badsyntax \
  18. "${FWK}/lib/python${PYVER}/site-packages"
  19. "${FWK}/bin/python@PYVER@" -Wi -O \
  20. "${FWK}/lib/python${PYVER}/compileall.py" \
  21. -f -x badsyntax \
  22. "${FWK}/lib/python${PYVER}/site-packages"
  23. chgrp -R admin "${FWK}"
  24. chmod -R g+w "${FWK}"
  25. exit 0