get python version without awk and cut [simpler]
This commit is contained in:
parent
ce9bfe53c5
commit
f8a5dbd960
|
@ -1,5 +1,5 @@
|
|||
# Set the C flags to include the GTK+ and Python libraries
|
||||
PYTHONVER = `python -V 2>&1 | awk '{print $$2}' | cut -f1,2 -d.`
|
||||
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`
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Set the C flags to include the GTK+ and Python libraries
|
||||
PYTHONVER = `python -V 2>&1 | awk '{print $$2}' | cut -f1,2 -d.`
|
||||
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`
|
||||
|
||||
|
|
Loading…
Reference in New Issue