Re: [Gtk-osx-users] Selecting Python installation for PyGtk
Status: Beta
Brought to you by:
jralls
|
From: John R. <jr...@ce...> - 2010-12-02 02:18:12
|
On Nov 14, 2010, at 5:43 PM, Ian Bell wrote: > 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. > > > Just as a guess, you need to start by learning Python. Go read up on $PYTHON_PATH. Regards, John Ralls |