see my post on installing gtk and pygtk without Macports or Fink. 
http://www.nabble.com/PyGTK-on-OSX--to21186327.html#a22451916
http://www.nabble.com/PyGTK-on-OSX--to21186327.html#a22451916";>PyGTK on OSX? 

I don't use Fink or MacPorts because I want to compile myself to learn  and 
they interfere :  if you try to use libraries from either, you may have
problems with version mismatches and library duplication between them and
/usr/local or python framework stuff

In site-package, i have :
- a folder named gtk-2.0 with folders named gtk, gio,glib, gobject and some
files pango etc...
- a folder named cairo
- a file named pygtk.py
- a file named pygtk.pth referring to "gtk-2.0"

_gtk.so is in site-packages/gtk-2.0/gtk/_gtk.so

in /Library/Frameworks/Python.framework/Versions/2.5/lib/
I have a folder named pkgconfig with the files pycairo.pc,pygtk-2.0.pc,
pygobject-2.0.pc
The file named pygtk-2.0.pc is
"prefix=/Library/Frameworks/Python.framework/Versions/2.5
exec_prefix=${prefix}
includedir=${prefix}/include
datarootd...@datarootdir@
datadir=${prefix}/share
pyexecdir=${exec_prefix}/lib/python2.5/site-packages

# you can use the --variable=pygtkincludedir argument to
# pkg-config to get this value.  You might want to use this to
# install additional headers.
pygtkincludedir=${includedir}/pygtk-2.0

# same here.  Useful when calling the code generator in addon packages.
defsdir=${datadir}/pygtk/2.0/defs
codegendir=${datadir}/pygtk/2.0/codegen

Name: PyGTK
Description: Python bindings for GTK+ and related libraries
Requires: pygobject-2.0
Version: 2.10.4
Cflags: -I${pygtkincludedir} "

I hope this will help
-- 
View this message in context: 
http://www.nabble.com/Gtk-issues-tp23803508p23810538.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