From 2a4661d0543c9250c67fd7ba6df50e71c200cab9 Mon Sep 17 00:00:00 2001 From: "jordi.saludes" Date: Wed, 1 Sep 2010 12:49:47 +0000 Subject: [PATCH] Autocompute python version in py-binds. --- contrib/py-bindings/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/py-bindings/Makefile b/contrib/py-bindings/Makefile index 32396fe97..aff4d909f 100644 --- a/contrib/py-bindings/Makefile +++ b/contrib/py-bindings/Makefile @@ -1,7 +1,8 @@ src=../../src import=-i$(src)/runtime/haskell:$(src)/compiler cbind=../c-bindings -pythoninc=/usr/include/python2.6 +pyversion = $(shell python -c 'import sys; print ".".join(`t` for t in sys.version_info[:2])') +pythoninc=/usr/include/python$(pyversion) debug= #-optc '-DDEBUG=1' exdir=../../examples/tutorial/embedded