diff --git a/wxPython/distrib/mac/MacPython/README.txt b/wxPython/distrib/mac/MacPython/README.txt new file mode 100644 index 0000000000..89ecd2b9b4 --- /dev/null +++ b/wxPython/distrib/mac/MacPython/README.txt @@ -0,0 +1,3 @@ +This is a set of build scripts and such for MacPython-OSX 2.3 that I +will use until there are standard distributions from Jack. + diff --git a/wxPython/distrib/mac/MacPython/build b/wxPython/distrib/mac/MacPython/build new file mode 100755 index 0000000000..dc3ec5a955 --- /dev/null +++ b/wxPython/distrib/mac/MacPython/build @@ -0,0 +1,84 @@ +#!/bin/sh -e +#---------------------------------------------------------------------- +# Build MacPython 2.3 and make an Installer package of it + +# Script configs +PYVERSION=2.3a1 +BUILDNUM=1 +DOCLEANUP=yes + +PROGDIR="`dirname \"$0\"`" +TMPDIR=/tmp/_py + +BUILDROOT=$TMPDIR/build +INSTALLROOT=$TMPDIR/install +DMGDIR=$TMPDIR/dmg +RESOURCEDIR=$PROGDIR/resources +DESTDIR=/projects/wx/wxPython/dist +PYTHONSRC=/projects/Python-$PYVERSION +WASTEDIR=/projects/waste + +# Setup +mkdir -p $BUILDROOT +mkdir -p $INSTALLROOT +mkdir -p $DMGDIR/root + + +# Configure and build Python +pushd $BUILDROOT + +# Make a link to the waste dir so that lib can be found. This allows +# the PythonIDE to be built +if [ ! -e waste ]; then + ln -s $WASTEDIR waste +fi + +$PYTHONSRC/configure --enable-framework=$INSTALLROOT/Library/Frameworks LDFLAGS=-Wl,-x +make +make frameworkinstall +popd + + +# Make the Installer package: +# First, remove the unix tools as their paths will be wrong. We'll recreate +# them in the postinstall. +rm -r $INSTALLROOT/usr + +# Next, remove the .pyc/.pyo files +python $PROGDIR/../zappycfiles.py $INSTALLROOT + +# Make the welcome message +cat > $RESOURCEDIR/Welcome.txt < $TOOLDIR/pythonw <