Hello,

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
this.

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:

http://www-106.ibm.com/developerworks/linux/library/l-wrap/

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:

ext_modules=[Extension("trayicon",["ext/eggtrayicon.c",                         
                                        "ext/trayicon.c",                              
         "ext/trayiconmodule.c"],
                libraries=["gtk+-2.0", "pygtk-2.0"])]

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.

Thanks,
~djc

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to