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?
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
participants (2)
-
David Andersen
-
John J. Lee