source: trunk/essentials/dev-lang/python/Mac/BuildScript/scripts/postflight.framework

Last change on this file was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 750 bytes
Line 
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" -Wi -tt \
10 "${FWK}/lib/python${PYVER}/compileall.py" \
11 -x badsyntax -x site-packages \
12 "${FWK}/lib/python${PYVER}"
13
14"${FWK}/bin/python" -Wi -tt -O \
15 "${FWK}/lib/python${PYVER}/compileall.py" \
16 -x badsyntax -x site-packages \
17 "${FWK}/lib/python${PYVER}"
18
19"${FWK}/bin/python" -Wi -tt \
20 "${FWK}/lib/python${PYVER}/compileall.py" \
21 -x badsyntax -x site-packages \
22 "${FWK}/Mac/Tools"
23
24"${FWK}/bin/python" -Wi -tt -O \
25 "${FWK}/lib/python${PYVER}/compileall.py" \
26 -x badsyntax -x site-packages \
27 "${FWK}/Mac/Tools"
28
29
30chown -R admin "${FWK}"
31chmod -R g+w "${FWK}"
32
33exit 0
Note: See TracBrowser for help on using the repository browser.