summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjordi.saludes <jordi.saludes@upc.edu>2010-09-01 12:49:47 +0000
committerjordi.saludes <jordi.saludes@upc.edu>2010-09-01 12:49:47 +0000
commit1fd51c0580d2cba5d0b7d430636968eb17d20270 (patch)
tree67078bec90203502d4819194b7ebfb83179a0d7b
parentf0c0648905224011a552062a2539d2fdc23101d4 (diff)
Autocompute python version in py-binds.
-rw-r--r--contrib/py-bindings/Makefile3
1 files changed, 2 insertions, 1 deletions
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