Added more tools for building distributions, and new scripts for the
wxPythonOSX dist. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
1
wxPython/distrib/mac/MacPython/.cvsignore
Normal file
1
wxPython/distrib/mac/MacPython/.cvsignore
Normal file
@@ -0,0 +1 @@
|
||||
.DS_Store
|
@@ -2,10 +2,13 @@
|
||||
#----------------------------------------------------------------------
|
||||
# Build MacPython 2.3 and make an Installer package of it
|
||||
|
||||
# TODO: Parameterize the versions, builddirs, etc...
|
||||
|
||||
# Script configs
|
||||
PYVERSION=2.3a1
|
||||
BUILDNUM=1
|
||||
DOCLEANUP=yes
|
||||
PYVER=2.3
|
||||
BUILDNUM=2
|
||||
DOCLEANUP=no
|
||||
|
||||
PROGDIR="`dirname \"$0\"`"
|
||||
TMPDIR=/tmp/_py
|
||||
@@ -21,6 +24,7 @@ WASTEDIR=/projects/waste
|
||||
# Setup
|
||||
mkdir -p $BUILDROOT
|
||||
mkdir -p $INSTALLROOT
|
||||
rm -rf $DMGDIR
|
||||
mkdir -p $DMGDIR/root
|
||||
|
||||
|
||||
@@ -45,7 +49,7 @@ popd
|
||||
rm -r $INSTALLROOT/usr
|
||||
|
||||
# Next, remove the .pyc/.pyo files
|
||||
python $PROGDIR/../zappycfiles.py $INSTALLROOT
|
||||
python $PROGDIR/../zappycfiles.py $INSTALLROOT/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER
|
||||
|
||||
# Make the welcome message
|
||||
cat > $RESOURCEDIR/Welcome.txt <<EOF
|
||||
@@ -59,11 +63,14 @@ EOF
|
||||
|
||||
|
||||
# Finally, build the package...
|
||||
rm -rf MacPython-OSX.pkg
|
||||
python $PROGDIR/../buildpkg.py \
|
||||
--Title=MacPython-OSX \
|
||||
--Version=$PYVERSION-$BUILDNUM \
|
||||
--Description="Python $PYVERSION for Mac OS X, framework based" \
|
||||
--NeedsAuthorization="YES" \
|
||||
--Relocatable="NO" \
|
||||
--InstallOnly="YES" \
|
||||
$INSTALLROOT \
|
||||
$RESOURCEDIR
|
||||
|
||||
@@ -77,8 +84,14 @@ mv $DMGDIR/MacPython-OSX-$PYVERSION-$BUILDNUM.dmg $DESTDIR
|
||||
|
||||
# Cleanup build/install dirs
|
||||
if [ $DOCLEANUP = yes ]; then
|
||||
echo cleaning up...
|
||||
echo "Cleaning up..."
|
||||
rm -rf $BUILDROOT
|
||||
rm -r $INSTALLROOT
|
||||
rm -r $DMGDIR
|
||||
rm -rf $INSTALLROOT
|
||||
rm -rf $DMGDIR
|
||||
else
|
||||
echo "Cleanup is disabled. You should remove these dirs when done:"
|
||||
echo " $BUILDROOT"
|
||||
echo " $INSTALLROOT"
|
||||
echo " $DMGDIR"
|
||||
fi
|
||||
|
||||
|
@@ -2,5 +2,5 @@ Welcome!
|
||||
|
||||
This program will install Python 2.3a1 for Mac OS X as a Framework.
|
||||
|
||||
Build number: 1
|
||||
Build date: Fri Jan 24 16:02:26 PST 2003
|
||||
Build number: 2
|
||||
Build date: Sat Jan 25 17:26:30 PST 2003
|
||||
|
@@ -13,6 +13,7 @@ DEST=$2
|
||||
# if destination is / then use usr/local/bin, otherwise just bin
|
||||
if [ "$DEST" = "/" ]; then
|
||||
TOOLDIR=/usr/local/bin
|
||||
DEST=
|
||||
else
|
||||
TOOLDIR=$DEST/bin
|
||||
fi
|
||||
@@ -46,3 +47,10 @@ $TOOLDIR/python -Wi -tt \
|
||||
$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
|
||||
|
||||
|
||||
# Make the site-packages dir writable by the admin. Should anything else
|
||||
# be writable too?
|
||||
|
||||
chgrp admin $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER/site-packages
|
||||
chmod g+w $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/lib/python$PYVER/site-packages
|
||||
|
Reference in New Issue
Block a user