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
484 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. -x badsyntax -x site-packages \
  10. "${FWK}/lib/python${PYVER}"
  11. "${FWK}/bin/python@PYVER@" -Wi -tt -O \
  12. "${FWK}/lib/python${PYVER}/compileall.py" \
  13. -x badsyntax -x site-packages \
  14. "${FWK}/lib/python${PYVER}"
  15. chgrp -R admin "${FWK}"
  16. chmod -R g+w "${FWK}"
  17. exit 0