Re: [Pythonmac-SIG] Fink vs MacPorts vs Framework

2009-06-30 Thread genemartin

My experience shows me that using fink or macports with python framework 
create problems with version mismatches and library duplication. So now, I
only use the framework  because i want to learn. With a little patience and
trying a lot (with the help of google), I gradually install what I want,
even pygame pygame but I must admit it was a bit complicated


-- 
View this message in context: 
http://www.nabble.com/Fink-vs-MacPorts-vs-Framework-tp24271594p24276543.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


Re: [Pythonmac-SIG] Fink vs MacPorts vs Framework

2009-06-30 Thread genemartin

Thanks but I do not want MacPorts or fink, I want to do it myself with only
the tools of mac os x

-- 
View this message in context: 
http://www.nabble.com/Fink-vs-MacPorts-vs-Framework-tp24271594p24278207.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


Re: [Pythonmac-SIG] Gtk issues

2009-06-08 Thread genemartin

i type 

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

with 
PKG_CONFIG_PATH=/Library/Frameworks/GLib.framework/Resources/dev/lib/pkgconfig:
- for Glib
/Library/Frameworks/Gtk.framework/Resources/dev/lib/pkgconfig: - for gtk
/Library/Frameworks/Cairo.framework/Resources/dev/lib/pkgconfig: - for
cairo
/Library/Frameworks/Python.framework/Versions/2.5/lib/pkgconfig- for
pygobject.2.0.pc, you need to find this file in your system
./configure --prefix=/Library/Frameworks/Python.framework/Versions/2.5  -
my python 
-- 
View this message in context: 
http://www.nabble.com/Gtk-issues-tp23803508p23920808.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


Re: [Pythonmac-SIG] Gtk issues

2009-06-01 Thread genemartin

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


Re: [Pythonmac-SIG] PyGTK on OSX?

2009-03-11 Thread genemartin

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