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
|
# Script configs
|
||||||
PYVERSION=2.3a2
|
PYVERSION=2.3a2
|
||||||
PYVER=2.3
|
PYVER=2.3
|
||||||
BUILDNUM=2
|
BUILDNUM=3
|
||||||
DOCLEANUP=no
|
DOCLEANUP=no
|
||||||
|
|
||||||
PROGDIR="`dirname \"$0\"`"
|
PROGDIR="`dirname \"$0\"`"
|
||||||
|
@@ -2,5 +2,5 @@ Welcome!
|
|||||||
|
|
||||||
This program will install Python 2.3a2 for Mac OS X as a Framework.
|
This program will install Python 2.3a2 for Mac OS X as a Framework.
|
||||||
|
|
||||||
Build number: 2
|
Build number: 3
|
||||||
Build date: Mon Mar 3 19:02:54 PST 2003
|
Build date: Thu Mar 20 18:54:52 PST 2003
|
||||||
|
@@ -22,12 +22,12 @@ fi
|
|||||||
mkdir -p $TOOLDIR
|
mkdir -p $TOOLDIR
|
||||||
|
|
||||||
# Make some links to the python executable
|
# Make some links to the python executable
|
||||||
if [ -e $TOOLDIR/python$PYVER]; then
|
if [ -e $TOOLDIR/python$PYVER ]; then
|
||||||
rm $TOOLDIR/python$PYVER
|
rm $TOOLDIR/python$PYVER
|
||||||
fi
|
fi
|
||||||
ln -fs $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/bin/python $TOOLDIR/python$PYVER
|
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
|
rm $TOOLDIR/python
|
||||||
fi
|
fi
|
||||||
ln -fs python$PYVER $TOOLDIR/python
|
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
|
# Compile the .py files in the Python library to .pyc's and then .pyo's
|
||||||
$TOOLDIR/python -Wi -tt \
|
$TOOLDIR/python -Wi -tt \
|
||||||
$DEST/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER/compileall.py \
|
$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 \
|
$TOOLDIR/python -Wi -tt -O \
|
||||||
$DEST/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER/compileall.py \
|
$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.
|
# Make the site-packages and other dirs writable by the admin.
|
||||||
|
for d in $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER/site-packages \
|
||||||
for d in lib/python$PYVER/site-packages bin; do
|
$DEST/Library/Frameworks/Python.framework/Versions/$PYVER/bin \
|
||||||
chgrp admin $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/$d
|
$DEST/Applications/MacPython-$PYVER; do
|
||||||
chmod g+w $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/$d
|
chgrp -R admin $d
|
||||||
|
chmod -R g+w $d
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user