• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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@" -E -s -Wi \
10    "${FWK}/lib/python${PYVER}/compileall.py" -q -j0 \
11    -f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
12    "${FWK}/lib/python${PYVER}"
13
14"${FWK}/bin/python@PYVER@" -E -s -Wi -O \
15    "${FWK}/lib/python${PYVER}/compileall.py" -q -j0 \
16    -f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
17    "${FWK}/lib/python${PYVER}"
18
19"${FWK}/bin/python@PYVER@" -E -s -Wi \
20    "${FWK}/lib/python${PYVER}/compileall.py" -q -j0 \
21    -f -x badsyntax \
22    "${FWK}/lib/python${PYVER}/site-packages"
23
24"${FWK}/bin/python@PYVER@" -E -s -Wi -O \
25    "${FWK}/lib/python${PYVER}/compileall.py" -q -j0 \
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