[Pythonmac-SIG] Gtk issues

Chris Van Bael chris.van.bael at gmail.com
Sun Jun 7 21:04:48 CEST 2009


Hi,

In the post you mentioned below, there is step 3:

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:
path_to_your_folder/pkgconfig ./configure
--prefix=/Library/Frameworks/Python.framework/Versions/2.5


Up til now I followed the instructions from
http://live.gnome.org/GTK%2B/OSX/BuildInstructions
and they work fine if I add as last command jhbuild build pygtk ...
for the System Python, but I need it in the Python.org Python (see my
mails on the PyGTK mailinglist)
So all GTK things are installed correct, only PyGTK is not linked to
the correct Python.

In your instruction however, I see
prefix=/Library/Frameworks/Python.framework/Versions/2.5
I think that may be what I need to link it to the correct Python.

But can you explain exactly what you type in Terminal?
I'm quite a noob on this, so if you could explain in very simple terms?

Thanks,

Chris

On Mon, Jun 1, 2009 at 8:35 AM, genemartin<martin.laloux at gmail.com> wrote:
>
> 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
> datarootdir=@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 at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>


More information about the Pythonmac-SIG mailing list