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