[Distutils] gtk-config
John J. Lee
jjl@pobox.com
Mon Feb 25 14:24:02 2002
On Mon, 25 Feb 2002, David Andersen wrote:
> I've got a Makefile that uses gtk-config to get the appropriate OpenGL
> includes and libraries:
>
> LDFLAGS = -shared -fPIC $(shell gtk-config --libs gtk gthread) -lGL -lgtkgl
> GTK_INCLUDES = $(shell gtk-config --cflags gtk gthread)
> CFLAGS = -I. $(CXX_INCLUDES) $(PYTHON_INCLUDES) $(GTK_INCLUDES)
>
> How do I do the equivalent in a Distutils script?
Just run gtk-config from setup.py? Will work on windows and unix
(assuming gtk-config is properly installed, which isn't necessarily true
of course). Then pass everything to distutils in usual way.
John