I managed to install pygtk (not the last version)on my mac with framework of
http://www.gtk-osx.org/ using following procedures:
(from http://developer.imendio.com/node/264)
1) install pycairo 1.6.4 (working well with the framework)
PKG_CONFIG_PATH=/Library/Frameworks/GLib.framework/Resources/dev/lib/pkgconfig:/Library/Frameworks/Gtk.framework/Resources/dev/lib/pkgconfig:/Library/Frameworks/Cairo.framework/Resources/dev/lib/pkgconfig
./configure --prefix=/Library/Frameworks/Python.framework/Versions/2.5
make
make install
(installs in site-packages of the Python framework)

2) install  pygobject 2.12.3 (working well with the framework)
PKG_CONFIG_PATH=/Library/Frameworks/GLib.framework/Resources/dev/lib/pkgconfig:/Library/Frameworks/Gtk.framework/Resources/dev/lib/pkgconfig:/Library/Frameworks/Cairo.framework/Resources/dev/lib/pkgconfig
./configure --prefix=/Library/Frameworks/Python.framework/Versions/2.5
make
make install



3 install pygtk 2.10.14 (working well with the framework)
PKG_CONFIG_PATH=/Library/Frameworks/GLib.framework/Resources/dev/lib/pkgconfig:/Library/Frameworks/Gtk.framework/Resources/dev/lib/pkgconfig:/Library/Frameworks/Cairo.framework/Resources/dev/lib/pkgconfig
./configure --prefix=/Library/Frameworks/Python.framework/Versions/2.5

in doing so, there is a problem :
 "checking for PYGOBJECT... configure: error: Package requirements
(pygobject-2.0 >= 2.12.1) were not met:

No package 'pygobject-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix"

i see that pygobject installs a gobject folder in gtk-2.0 folder in
site-packages and a pygobject2.0.pc in lib/pkgconfig
using :
PKG_CONFIG_PATH=/Library/Frameworks/GLib.framework/Resources/dev/lib/pkgconfig:/Library/Frameworks/Gtk.framework/Resources/dev/lib/pkgconfig:/Library/Frameworks/Cairo.framework/Resources/dev/lib/pkgconfig:
path_to_your_folder/pkgconfig ./configure
--prefix=/Library/Frameworks/Python.framework/Versions/2.5

pygtk works very well, all the demos etc.. except anything that relates to
glade that have yet to install




-- 
View this message in context: 
http://www.nabble.com/PyGTK-on-OSX--tp21186327p22451916.html
Sent from the Python - pythonmac-sig mailing list archive at Nabble.com.

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to