From 47314351eea980fbb59820b5bca04fc5c4106d01 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 11 Mar 2010 12:57:16 +0100 Subject: [PATCH] run embedding test with current Python, not system Python --- Demos/embed/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 -- 2.26.2