From: Stefan Behnel Date: Thu, 11 Mar 2010 11:57:16 +0000 (+0100) Subject: run embedding test with current Python, not system Python X-Git-Tag: 0.13.beta0~319^2~2^2~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=47314351eea980fbb59820b5bca04fc5c4106d01;p=cython.git run embedding test with current Python, not system Python --- diff --git a/Demos/embed/Makefile b/Demos/embed/Makefile index 5d05c4e2..2117e558 100644 --- a/Demos/embed/Makefile +++ b/Demos/embed/Makefile @@ -1,7 +1,8 @@ # Makefile for creating our standalone Cython program -PYVERSION=$(shell python -c "import sys; print(sys.version[:3])") -PYPREFIX=$(shell python -c "import sys; print(sys.prefix)") -LINKFORSHARED=$(shell python -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LINKFORSHARED'))") +PYTHON=python +PYVERSION=$(shell ($PYTHON) -c "import sys; print(sys.version[:3])") +PYPREFIX=$(shell $(PYTHON) -c "import sys; print(sys.prefix)") +LINKFORSHARED=$(shell $(PYTHON) -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LINKFORSHARED'))") INCLUDES=-I$(PYPREFIX)/include/python$(PYVERSION) embedded: embedded.o @@ -11,7 +12,7 @@ embedded.o: embedded.c gcc -c $^ $(INCLUDES) embedded.c: embedded.pyx - @python ../../cython.py --embed embedded.pyx + @$(PYTHON) ../../cython.py --embed embedded.pyx all: embedded @@ -21,4 +22,4 @@ clean: test: clean all ./embedded > test.output - python assert_equal.py embedded.output test.output + $(PYTHON) assert_equal.py embedded.output test.output