Linux 64bit build script

After much trial and error I’ve created this build script for using an alternate sip build so that phoenix can be built on a 64 bit machine. You’ll have to modify it slightly if as the current (as of today’s) sip snapshot is hardcoded.
Also I’ve made some slight changes since I last ran this so if it fails for any reason let me know.
It also produces to helper scripts at the end you can either source the wxPhoenix.sh before running your program or put the wxPhoenix.py script on your path and use “from wxPhoenix import wx”

#!/bin/bash

basedir=pwd
phoenixdir=$basedir/Phoenix
sipsrcdir=$basedir/sip-4.14-snapshot-214dd6433474
sipmod=sip_wxphoenix
sipbindir=$phoenixdir/bin
siplibdir=$phoenixdir/sip/siplib
sipdirdir=$phoenixdir/sip/cpp

svn co http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk wxWidgets
svn co http://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk Phoenix

rm -r $siplibdir

cd $sipsrcdir
python3 configure.py --sip-module=$sipmod --bindir=$sipbindir --incdir=$siplibdir --sipdir=$sipdirdir --destdir=$phoenixdir
make

cp -r $sipsrcdir/siplib $siplibdir
make install

export SIP=$sipbindir/sip

cd $phoenixdir

python build.py 3.2 dox etg --nodoc sip build

cd $basedir

echo "import sys

sys.path.insert(0,’$phoenixdir’)

import wx" > wxPhoenix.py

echo “export LD_LIBRARY_PATH=$phoenixdir/bld/lib:LD_LIBRARY_PATH
export PYTHONPATH=$phoenixdir:PYTHONPATH” > wxPhoenix.sh