diff options
author | Robert Bradshaw <robertwb@math.washington.edu> | 2010-01-07 23:55:57 -0800 |
---|---|---|
committer | Robert Bradshaw <robertwb@math.washington.edu> | 2010-01-07 23:55:57 -0800 |
commit | f6eb8dd100c6e922f8b7a7b6e088bc1dc3320ab7 (patch) | |
tree | c0e1b1c6b68dc6d96c212425862c33f9cd8acb9d /Demos/embed | |
parent | 1bc30fdf851f811a63fe3ea426a0de8eba03c880 (diff) | |
download | cython-f6eb8dd100c6e922f8b7a7b6e088bc1dc3320ab7.tar.gz |
Py3 fixes for embedded example.
Diffstat (limited to 'Demos/embed')
-rw-r--r-- | Demos/embed/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Demos/embed/Makefile b/Demos/embed/Makefile index bec7335b7..5d05c4e20 100644 --- a/Demos/embed/Makefile +++ b/Demos/embed/Makefile @@ -1,11 +1,11 @@ # 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')") +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 - gcc -o $@ $^ $(LINKFORSHARED) -lpython$(PYVERSION) -lm -lpthread -ldl -lutil + gcc -o $@ $^ $(LINKFORSHARED) -lpython$(PYVERSION) -lm -lpthread -ldl -lutil -L$(PYPREFIX)/lib embedded.o: embedded.c gcc -c $^ $(INCLUDES) |