From: Robert Bradshaw Date: Fri, 8 Jan 2010 07:55:57 +0000 (-0800) Subject: Py3 fixes for embedded example. X-Git-Tag: 0.12.1~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f6eb8dd100c6e922f8b7a7b6e088bc1dc3320ab7;p=cython.git Py3 fixes for embedded example. --- diff --git a/Demos/embed/Makefile b/Demos/embed/Makefile index bec7335b..5d05c4e2 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)