summaryrefslogtreecommitdiffstats
path: root/Mac/BuildScript/scripts/postflight.framework
blob: b796a102be32dc1f586468f4b3f5a55154093283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
#
# Recompile the .py files.
#

PYVER="@PYVER@"
FWK="/Library/Frameworks/Python.framework/Versions/@PYVER@"

"${FWK}/bin/python" -Wi -tt \
    "${FWK}/lib/python${PYVER}/compileall.py" \
    -x badsyntax -x site-packages \
    "${FWK}/lib/python${PYVER}"

"${FWK}/bin/python" -Wi -tt -O \
    "${FWK}/lib/python${PYVER}/compileall.py" \
    -x badsyntax -x site-packages \
    "${FWK}/lib/python${PYVER}"

"${FWK}/bin/python" -Wi -tt \
    "${FWK}/lib/python${PYVER}/compileall.py" \
    -x badsyntax -x site-packages \
    "${FWK}/Mac/Tools"

"${FWK}/bin/python" -Wi -tt -O \
    "${FWK}/lib/python${PYVER}/compileall.py" \
    -x badsyntax -x site-packages \
    "${FWK}/Mac/Tools"


chown -R admin "${FWK}"
chmod -R g+w "${FWK}"

exit 0