I looked into py2app, instead of using macports, but it currently does not work with pygtk, however I found an alternative solution using GTK-OSX.
I started testing earlier this year with OSX 10.6.6 in a Virtualbox VM (iso from leohazard) however running a VM is painfully slow on my machine so I couldn't continue with it. I just found the instructions that I had written down and thought I would share them here in case anyone else wants to try.
The instructions below are based on the details found on these website: GTK-OSX, winswitch and tryton.
- Validate that gcc-4.0 and the 10.5 sdk are present
Code: Select all
/usr/bin/gcc-4.0 -v ls -ld /Developer/SDKs/MacOSX10.5.sdk
- Install git
Code: Select all
curl -O http://git-osx-installer.googlecode.com/files/git-1.7.2.3-intel-leopard.dmg open git-1.7.2.3-intel-leopard.dmg sudo installer -pkg /Volumes/Git\ 1.7.2.3\ Intel\ Leopard/git-1.7.2.3-intel-leopard.pkg -target / hdiutil eject "/Volumes/Git 1.7.2.3 Intel Leopard"
- Create a user just for this build, become that user, and prepare the environment
Code: Select all
sudo su - gtkosxbuilder cat << EOF > ~/.profile export PATH=~/.local/bin:~/gtk/inst/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/git/bin export DYLD_FALLBACK_LIBRARY_PATH=~/gtk/inst/lib EOF . ~/.profile
- Download and run the gtk-osx build setup script
Code: Select all
curl -L -O https://github.com/jralls/gtk-osx-build/raw/master/gtk-osx-build-setup.sh sh gtk-osx-build-setup.sh
- Modify .jhbuildrc-custom
Code: Select all
sed -i -e 's/^setup_sdk/#setup_sdk/g' .jhbuildrc-custom cat << EOF >> .jhbuildrc-custom _gtk_osx_use_jhbuild_python = True setup_sdk(target="10.5", sdk_version="10.5", architectures=["i386"]) os.environ["CC"] = "/usr/bin/gcc-4.0" os.environ["DYLD_LIBRARY_PATH"] = "" build_policy = "updated-deps" modules = [ "meta-gtk-osx-bootstrap", "meta-gtk-osx-core", "meta-gtk-osx-python", "librsvg", "meta-gtk-osx-themes", "gtk-quartz-engine" ] EOF
- Build (This will take a while)
Code: Select all
jhbuild bootstrap && jhbuild build