Commit 47314351 authored by Stefan Behnel's avatar Stefan Behnel

run embedding test with current Python, not system Python

parent 8fec4cea
# Makefile for creating our standalone Cython program # Makefile for creating our standalone Cython program
PYVERSION=$(shell python -c "import sys; print(sys.version[:3])") PYTHON=python
PYPREFIX=$(shell python -c "import sys; print(sys.prefix)") PYVERSION=$(shell ($PYTHON) -c "import sys; print(sys.version[:3])")
LINKFORSHARED=$(shell python -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LINKFORSHARED'))") 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) INCLUDES=-I$(PYPREFIX)/include/python$(PYVERSION)
embedded: embedded.o embedded: embedded.o
...@@ -11,7 +12,7 @@ embedded.o: embedded.c ...@@ -11,7 +12,7 @@ embedded.o: embedded.c
gcc -c $^ $(INCLUDES) gcc -c $^ $(INCLUDES)
embedded.c: embedded.pyx embedded.c: embedded.pyx
@python ../../cython.py --embed embedded.pyx @$(PYTHON) ../../cython.py --embed embedded.pyx
all: embedded all: embedded
...@@ -21,4 +22,4 @@ clean: ...@@ -21,4 +22,4 @@ clean:
test: clean all test: clean all
./embedded > test.output ./embedded > test.output
python assert_equal.py embedded.output test.output $(PYTHON) assert_equal.py embedded.output test.output
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment