use correct python version to build debian package

This commit is contained in:
Yann Leboulanger 2006-05-05 06:29:31 +00:00
parent ab05e38d59
commit 7eca639863
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Set the C flags to include the GTK+ and Python libraries
PYTHONVER = `python -c 'import sys; print sys.version[:3]'`
PYTHON = python
PYTHONVER = `$(PYTHON) -c 'import sys; print sys.version[:3]'`
CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0` -fPIC -I/usr/include/python$(PYTHONVER) -I.
LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0` -lpython$(PYTHONVER)