From 3fe6d07006d9112abb5fae4e8a046ccb78a7937f Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Sun, 14 Oct 2007 12:42:31 +0000 Subject: [PATCH] auto-detect python version (overrid with PYTHON_VERSION=x.y) git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@525 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- apps/py_sems/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/py_sems/Makefile b/apps/py_sems/Makefile index 3469f208..191e2255 100644 --- a/apps/py_sems/Makefile +++ b/apps/py_sems/Makefile @@ -11,7 +11,7 @@ TTS ?= y # # PYTHON_VERSION might also be 2.2 -- except for the use of GIL # do a ls /usr/include/python2.3/Python.h to see if it's there -PYTHON_VERSION ?= 2.4 +PYTHON_VERSION ?= `python -c 'import sys;print sys.version[0:3]';` PY_VER = $(PYTHON_VERSION) PY_EXE = python$(PY_VER) # adjust to point to python include path