[pygtk] Tray Icon and Distutils
arker at rogers.com
Fri May 21 21:32:48 WST 2004
Are there any projects that use the trayicon (not yet wrapped for pygtk
to my knowledge) and distributed with distutils? I am trying to do this
with little success. I'm new to distutils so I'm not suprised about
I'd be interested in seeing the proper setup.py format that makes this
work. I'm using the source as it is found in the tutorial here:
Everything works locally, but now I want to be able to make it so on
other systems. Here is the relevant portion of my setup() function
definition in setup.py:
When I run setup.py, it tries to compile, but without the appropriate
CFLAGS, so of course fails to find gtk+-2.0 and pygtk-2.0 and fails.
I also tried to define the CFLAGS manually like this:
CFLAGS = commands.getoutput('pkg-config --cflags gtk+-2.0 pygtk-2.0')
Then adding the line:
extra_compile_args = [CFLAGS],
to the setup() function and that didn't work either.
Any ideas? Perhaps another project that uses the trayicon would help.
More information about the pygtk