From dedc42952b40fea75e909d2f89a320a4ee3e6781 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 27 Aug 2016 09:21:23 +0100 Subject: Don't hardcode the Python include path This is a problem when building with Guix. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2cef720..436b418 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ #PYVERSION = `python -V 2>&1 | cut -d\ -f2 | cut -d. -f1-2` PYVERSION = `python -c "import sys;sys.stdout.write(sys.version[:3])"` -PYINC = -I/usr/include/python$(PYVERSION) +PYINC = $(shell python-config --includes) PYLIB = -lpython$(PYVERSION) PERL = /usr/bin/perl TEST_VERBOSE = 0 -- cgit v1.2.3