[Gtk-osx-users] Selecting Python installation for PyGtk



All,

Got pygtk to build without problems on 10.6 Snow Leopard by following the instructions from https://sourceforge.net/apps/trac/gtk-osx/wiki/PyGtk

I ran the terminal commands:

jhbuild bootstrap --ignore-system

jhbuild build meta-gtk-osx-bootstrap

jhbuild build meta-gtk-osx-core

jhbuild build meta-gtk-osx-python


and the last few lines of my .jhbuildrc-custom file looks like:


build_policy = "updated-deps"

moduleset = "http://github.com/jralls/gtk-osx-build/raw/master/modulesets-stable/gtk-osx.modules"

setup_sdk("10.6", "10.6", ["i386"])

_gtk_osx_use_jhbuild_python=True

append_autogenargs("python", "--with-universal-archs=32-bit --enable-universalsdk=/Developer/SDKs/MacOSX10.5.sdk")

branches["python"] = "http://www.python.org/ftp/python/2.6.4/Python-2.6.4.tar.bz2"


and I went through the Python unpacking step and everything seemed to be working. But when I run python (with all the different versions on my computer) 


import pygtk 


fails. I can see that the PyGtk is hiding in ~/gtk . How do I get the pygtk files to be found by my Python installation so that I can sucessfully use PyGtk on OSX?


Thanks for any information you can provide.


Regards,

Ian


----
Ian Bell
Graduate Research Assistant
Herrick Labs
Purdue University
email: ibell purdue edu
cell: (607)227-7626







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]