From f6eb8dd100c6e922f8b7a7b6e088bc1dc3320ab7 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 7 Jan 2010 23:55:57 -0800 Subject: [PATCH] Py3 fixes for embedded example. --- Demos/embed/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.26.2