summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLisandro Dalcin <dalcinl@gmail.com>2017-10-14 20:11:24 +0300
committerLisandro Dalcin <dalcinl@gmail.com>2017-10-15 14:17:10 +0300
commit206e95f27137165e450771c38845c72457c16344 (patch)
tree4f649a6fc1bcf849842214c1cbda7c75f88269e9
parent83205e5511222ef2107d1b4a52c07419a92e8ff2 (diff)
downloadcython-206e95f27137165e450771c38845c72457c16344.tar.gz
Fix embedded test to work with Anaconda Python
-rw-r--r--Demos/embed/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Demos/embed/Makefile b/Demos/embed/Makefile
index f00697f1a..e8d40b999 100644
--- a/Demos/embed/Makefile
+++ b/Demos/embed/Makefile
@@ -1,6 +1,7 @@
# Makefile for creating our standalone Cython program
PYTHON := python
PYVERSION := $(shell $(PYTHON) -c "import sys; print(sys.version[:3])")
+PYPREFIX := $(shell $(PYTHON) -c "import sys; print(sys.prefix)")
INCDIR := $(shell $(PYTHON) -c "from distutils import sysconfig; print(sysconfig.get_python_inc())")
PLATINCDIR := $(shell $(PYTHON) -c "from distutils import sysconfig; print(sysconfig.get_python_inc(plat_specific=True))")
@@ -31,5 +32,5 @@ clean:
@rm -f *~ *.o *.so core core.* *.c embedded test.output
test: clean all
- LD_LIBRARY_PATH=$(LIBDIR1):$$LD_LIBRARY_PATH ./embedded > test.output
+ PYTHONHOME=$(PYPREFIX) LD_LIBRARY_PATH=$(LIBDIR1):$$LD_LIBRARY_PATH ./embedded > test.output
$(PYTHON) assert_equal.py embedded.output test.output