Tweaks to MacPython build scripts and such
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
# Script configs
|
||||
PYVERSION=2.3a2
|
||||
PYVER=2.3
|
||||
BUILDNUM=2
|
||||
BUILDNUM=3
|
||||
DOCLEANUP=no
|
||||
|
||||
PROGDIR="`dirname \"$0\"`"
|
||||
|
@@ -2,5 +2,5 @@ Welcome!
|
||||
|
||||
This program will install Python 2.3a2 for Mac OS X as a Framework.
|
||||
|
||||
Build number: 2
|
||||
Build date: Mon Mar 3 19:02:54 PST 2003
|
||||
Build number: 3
|
||||
Build date: Thu Mar 20 18:54:52 PST 2003
|
||||
|
@@ -22,12 +22,12 @@ fi
|
||||
mkdir -p $TOOLDIR
|
||||
|
||||
# Make some links to the python executable
|
||||
if [ -e $TOOLDIR/python$PYVER]; then
|
||||
if [ -e $TOOLDIR/python$PYVER ]; then
|
||||
rm $TOOLDIR/python$PYVER
|
||||
fi
|
||||
ln -fs $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/bin/python $TOOLDIR/python$PYVER
|
||||
|
||||
if [ -e $TOOLDIR/python]; then
|
||||
if [ -e $TOOLDIR/python ]; then
|
||||
rm $TOOLDIR/python
|
||||
fi
|
||||
ln -fs python$PYVER $TOOLDIR/python
|
||||
@@ -44,18 +44,19 @@ chmod +x $TOOLDIR/pythonw
|
||||
# Compile the .py files in the Python library to .pyc's and then .pyo's
|
||||
$TOOLDIR/python -Wi -tt \
|
||||
$DEST/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER/compileall.py \
|
||||
-x badsyntax $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER
|
||||
-x badsyntax -x site-packages $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER
|
||||
|
||||
$TOOLDIR/python -Wi -tt -O \
|
||||
$DEST/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER/compileall.py \
|
||||
-x badsyntax $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER
|
||||
-x badsyntax -x site-packages $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER
|
||||
|
||||
|
||||
# Make the site-packages and other dirs writable by the admin.
|
||||
|
||||
for d in lib/python$PYVER/site-packages bin; do
|
||||
chgrp admin $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/$d
|
||||
chmod g+w $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/$d
|
||||
for d in $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER/site-packages \
|
||||
$DEST/Library/Frameworks/Python.framework/Versions/$PYVER/bin \
|
||||
$DEST/Applications/MacPython-$PYVER; do
|
||||
chgrp -R admin $d
|
||||
chmod -R g+w $d
|
||||
done
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user