diff options
author | drochner <drochner@pkgsrc.org> | 2010-07-15 17:41:57 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2010-07-15 17:41:57 +0000 |
commit | fe4dcd45a9d15dbc64694059c83e4c11ea9f5409 (patch) | |
tree | 9e6d5b9d6f03991b2dbeb89230da0b4ddb56188b /devel/py-cython | |
parent | 0008e5d171e6b1d79bbdb46cc794c1cbe8a1fddb (diff) | |
download | pkgsrc-fe4dcd45a9d15dbc64694059c83e4c11ea9f5409.tar.gz |
add py-cython-0.12.1, a compiler to build Pythin extensions, from
Kamel Derouiche per pkgsrc-wip
Diffstat (limited to 'devel/py-cython')
-rw-r--r-- | devel/py-cython/DESCR | 14 | ||||
-rw-r--r-- | devel/py-cython/Makefile | 33 | ||||
-rw-r--r-- | devel/py-cython/PLIST | 262 | ||||
-rw-r--r-- | devel/py-cython/buildlink3.mk | 15 | ||||
-rw-r--r-- | devel/py-cython/distinfo | 8 | ||||
-rw-r--r-- | devel/py-cython/patches/patch-aa | 13 | ||||
-rw-r--r-- | devel/py-cython/patches/patch-ab | 13 | ||||
-rw-r--r-- | devel/py-cython/patches/patch-ac | 33 |
8 files changed, 391 insertions, 0 deletions
diff --git a/devel/py-cython/DESCR b/devel/py-cython/DESCR new file mode 100644 index 00000000000..3c57b208ba4 --- /dev/null +++ b/devel/py-cython/DESCR @@ -0,0 +1,14 @@ +The Cython language makes writing C extensions for the Python language +as easy as Python itself. Cython is a source code translator based on +the well-known Pyrex, but supports more cutting edge functionality and +optimizations. + +The Cython language is very close to the Python language (and most +Python code is also valid Cython code), but Cython additionally supports +calling C functions and declaring C types on variables and class +attributes. This allows the compiler to generate very efficient C code +from Cython code. + +This makes Cython the ideal language for writing glue code for external +C libraries, and for fast C modules that speed up the execution of +Python code. diff --git a/devel/py-cython/Makefile b/devel/py-cython/Makefile new file mode 100644 index 00000000000..2132ca2e12b --- /dev/null +++ b/devel/py-cython/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/07/15 17:41:57 drochner Exp $ +# + +DISTNAME= Cython-0.12.1 +PKGNAME= ${PYPKGPREFIX}-cython-0.12.1 +CATEGORIES= lang python +MASTER_SITES= http://cython.org/release/ + +MAINTAINER= jihbed.research@gmail.com +HOMEPAGE= http://cython.org/ +COMMENT= C-Extensions for Python +LICENSE= apache-1.1 + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_LANGUAGES= c +PYDISTUTILSPKG= yes + +PYTHON_VERSIONS_ACCEPTED= 26 25 +PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} + +post-extract: + cd ${WRKSRC}/bin && ${MV} cython cython${PYVERSSUFFIX} + +# for test only +#USE_LANGUAGES+= c++ +do-test: + (cd ${WRKSRC} && ${PYTHONBIN} runtests.py) + +.include "../../lang/python/extension.mk" +# for test only +#.include "../../math/py-numpy/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/py-cython/PLIST b/devel/py-cython/PLIST new file mode 100644 index 00000000000..8de2806a538 --- /dev/null +++ b/devel/py-cython/PLIST @@ -0,0 +1,262 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2010/07/15 17:41:57 drochner Exp $ +bin/cython${PYVERSSUFFIX} +${PYSITELIB}/Cython/CodeWriter.py +${PYSITELIB}/Cython/CodeWriter.pyc +${PYSITELIB}/Cython/CodeWriter.pyo +${PYSITELIB}/Cython/Compiler/AnalysedTreeTransforms.py +${PYSITELIB}/Cython/Compiler/AnalysedTreeTransforms.pyc +${PYSITELIB}/Cython/Compiler/AnalysedTreeTransforms.pyo +${PYSITELIB}/Cython/Compiler/Annotate.py +${PYSITELIB}/Cython/Compiler/Annotate.pyc +${PYSITELIB}/Cython/Compiler/Annotate.pyo +${PYSITELIB}/Cython/Compiler/AutoDocTransforms.py +${PYSITELIB}/Cython/Compiler/AutoDocTransforms.pyc +${PYSITELIB}/Cython/Compiler/AutoDocTransforms.pyo +${PYSITELIB}/Cython/Compiler/Buffer.py +${PYSITELIB}/Cython/Compiler/Buffer.pyc +${PYSITELIB}/Cython/Compiler/Buffer.pyo +${PYSITELIB}/Cython/Compiler/Builtin.py +${PYSITELIB}/Cython/Compiler/Builtin.pyc +${PYSITELIB}/Cython/Compiler/Builtin.pyo +${PYSITELIB}/Cython/Compiler/CmdLine.py +${PYSITELIB}/Cython/Compiler/CmdLine.pyc +${PYSITELIB}/Cython/Compiler/CmdLine.pyo +${PYSITELIB}/Cython/Compiler/Code.py +${PYSITELIB}/Cython/Compiler/Code.pyc +${PYSITELIB}/Cython/Compiler/Code.pyo +${PYSITELIB}/Cython/Compiler/CodeGeneration.py +${PYSITELIB}/Cython/Compiler/CodeGeneration.pyc +${PYSITELIB}/Cython/Compiler/CodeGeneration.pyo +${PYSITELIB}/Cython/Compiler/ControlFlow.py +${PYSITELIB}/Cython/Compiler/ControlFlow.pyc +${PYSITELIB}/Cython/Compiler/ControlFlow.pyo +${PYSITELIB}/Cython/Compiler/CythonScope.py +${PYSITELIB}/Cython/Compiler/CythonScope.pyc +${PYSITELIB}/Cython/Compiler/CythonScope.pyo +${PYSITELIB}/Cython/Compiler/DebugFlags.py +${PYSITELIB}/Cython/Compiler/DebugFlags.pyc +${PYSITELIB}/Cython/Compiler/DebugFlags.pyo +${PYSITELIB}/Cython/Compiler/Errors.py +${PYSITELIB}/Cython/Compiler/Errors.pyc +${PYSITELIB}/Cython/Compiler/Errors.pyo +${PYSITELIB}/Cython/Compiler/ExprNodes.py +${PYSITELIB}/Cython/Compiler/ExprNodes.pyc +${PYSITELIB}/Cython/Compiler/ExprNodes.pyo +${PYSITELIB}/Cython/Compiler/Future.py +${PYSITELIB}/Cython/Compiler/Future.pyc +${PYSITELIB}/Cython/Compiler/Future.pyo +${PYSITELIB}/Cython/Compiler/Interpreter.py +${PYSITELIB}/Cython/Compiler/Interpreter.pyc +${PYSITELIB}/Cython/Compiler/Interpreter.pyo +${PYSITELIB}/Cython/Compiler/Lexicon.py +${PYSITELIB}/Cython/Compiler/Lexicon.pyc +${PYSITELIB}/Cython/Compiler/Lexicon.pyo +${PYSITELIB}/Cython/Compiler/Main.py +${PYSITELIB}/Cython/Compiler/Main.pyc +${PYSITELIB}/Cython/Compiler/Main.pyo +${PYSITELIB}/Cython/Compiler/ModuleNode.py +${PYSITELIB}/Cython/Compiler/ModuleNode.pyc +${PYSITELIB}/Cython/Compiler/ModuleNode.pyo +${PYSITELIB}/Cython/Compiler/Naming.py +${PYSITELIB}/Cython/Compiler/Naming.pyc +${PYSITELIB}/Cython/Compiler/Naming.pyo +${PYSITELIB}/Cython/Compiler/Nodes.py +${PYSITELIB}/Cython/Compiler/Nodes.pyc +${PYSITELIB}/Cython/Compiler/Nodes.pyo +${PYSITELIB}/Cython/Compiler/Optimize.py +${PYSITELIB}/Cython/Compiler/Optimize.pyc +${PYSITELIB}/Cython/Compiler/Optimize.pyo +${PYSITELIB}/Cython/Compiler/Options.py +${PYSITELIB}/Cython/Compiler/Options.pyc +${PYSITELIB}/Cython/Compiler/Options.pyo +${PYSITELIB}/Cython/Compiler/ParseTreeTransforms.py +${PYSITELIB}/Cython/Compiler/ParseTreeTransforms.pyc +${PYSITELIB}/Cython/Compiler/ParseTreeTransforms.pyo +${PYSITELIB}/Cython/Compiler/Parsing.pxd +${PYSITELIB}/Cython/Compiler/Parsing.py +${PYSITELIB}/Cython/Compiler/Parsing.pyc +${PYSITELIB}/Cython/Compiler/Parsing.pyo +${PYSITELIB}/Cython/Compiler/Parsing.so +${PYSITELIB}/Cython/Compiler/PyrexTypes.py +${PYSITELIB}/Cython/Compiler/PyrexTypes.pyc +${PYSITELIB}/Cython/Compiler/PyrexTypes.pyo +${PYSITELIB}/Cython/Compiler/Scanning.pxd +${PYSITELIB}/Cython/Compiler/Scanning.py +${PYSITELIB}/Cython/Compiler/Scanning.pyc +${PYSITELIB}/Cython/Compiler/Scanning.pyo +${PYSITELIB}/Cython/Compiler/Scanning.so +${PYSITELIB}/Cython/Compiler/StringEncoding.py +${PYSITELIB}/Cython/Compiler/StringEncoding.pyc +${PYSITELIB}/Cython/Compiler/StringEncoding.pyo +${PYSITELIB}/Cython/Compiler/Symtab.py +${PYSITELIB}/Cython/Compiler/Symtab.pyc +${PYSITELIB}/Cython/Compiler/Symtab.pyo +${PYSITELIB}/Cython/Compiler/Tests/TestBuffer.py +${PYSITELIB}/Cython/Compiler/Tests/TestBuffer.pyc +${PYSITELIB}/Cython/Compiler/Tests/TestBuffer.pyo +${PYSITELIB}/Cython/Compiler/Tests/TestDecorators.py +${PYSITELIB}/Cython/Compiler/Tests/TestDecorators.pyc +${PYSITELIB}/Cython/Compiler/Tests/TestDecorators.pyo +${PYSITELIB}/Cython/Compiler/Tests/TestParseTreeTransforms.py +${PYSITELIB}/Cython/Compiler/Tests/TestParseTreeTransforms.pyc +${PYSITELIB}/Cython/Compiler/Tests/TestParseTreeTransforms.pyo +${PYSITELIB}/Cython/Compiler/Tests/TestTreeFragment.py +${PYSITELIB}/Cython/Compiler/Tests/TestTreeFragment.pyc +${PYSITELIB}/Cython/Compiler/Tests/TestTreeFragment.pyo +${PYSITELIB}/Cython/Compiler/Tests/TestTreePath.py +${PYSITELIB}/Cython/Compiler/Tests/TestTreePath.pyc +${PYSITELIB}/Cython/Compiler/Tests/TestTreePath.pyo +${PYSITELIB}/Cython/Compiler/Tests/__init__.py +${PYSITELIB}/Cython/Compiler/Tests/__init__.pyc +${PYSITELIB}/Cython/Compiler/Tests/__init__.pyo +${PYSITELIB}/Cython/Compiler/TreeFragment.py +${PYSITELIB}/Cython/Compiler/TreeFragment.pyc +${PYSITELIB}/Cython/Compiler/TreeFragment.pyo +${PYSITELIB}/Cython/Compiler/TreePath.py +${PYSITELIB}/Cython/Compiler/TreePath.pyc +${PYSITELIB}/Cython/Compiler/TreePath.pyo +${PYSITELIB}/Cython/Compiler/TypeInference.py +${PYSITELIB}/Cython/Compiler/TypeInference.pyc +${PYSITELIB}/Cython/Compiler/TypeInference.pyo +${PYSITELIB}/Cython/Compiler/TypeSlots.py +${PYSITELIB}/Cython/Compiler/TypeSlots.pyc +${PYSITELIB}/Cython/Compiler/TypeSlots.pyo +${PYSITELIB}/Cython/Compiler/UtilNodes.py +${PYSITELIB}/Cython/Compiler/UtilNodes.pyc +${PYSITELIB}/Cython/Compiler/UtilNodes.pyo +${PYSITELIB}/Cython/Compiler/Version.py +${PYSITELIB}/Cython/Compiler/Version.pyc +${PYSITELIB}/Cython/Compiler/Version.pyo +${PYSITELIB}/Cython/Compiler/Visitor.pxd +${PYSITELIB}/Cython/Compiler/Visitor.py +${PYSITELIB}/Cython/Compiler/Visitor.pyc +${PYSITELIB}/Cython/Compiler/Visitor.pyo +${PYSITELIB}/Cython/Compiler/Visitor.so +${PYSITELIB}/Cython/Compiler/__init__.py +${PYSITELIB}/Cython/Compiler/__init__.pyc +${PYSITELIB}/Cython/Compiler/__init__.pyo +${PYSITELIB}/Cython/Debugging.py +${PYSITELIB}/Cython/Debugging.pyc +${PYSITELIB}/Cython/Debugging.pyo +${PYSITELIB}/Cython/Distutils/__init__.py +${PYSITELIB}/Cython/Distutils/__init__.pyc +${PYSITELIB}/Cython/Distutils/__init__.pyo +${PYSITELIB}/Cython/Distutils/build_ext.py +${PYSITELIB}/Cython/Distutils/build_ext.pyc +${PYSITELIB}/Cython/Distutils/build_ext.pyo +${PYSITELIB}/Cython/Distutils/extension.py +${PYSITELIB}/Cython/Distutils/extension.pyc +${PYSITELIB}/Cython/Distutils/extension.pyo +${PYSITELIB}/Cython/Includes/numpy.pxd +${PYSITELIB}/Cython/Includes/python.pxd +${PYSITELIB}/Cython/Includes/python2.5.pxd +${PYSITELIB}/Cython/Includes/python_bool.pxd +${PYSITELIB}/Cython/Includes/python_buffer.pxd +${PYSITELIB}/Cython/Includes/python_bytes.pxd +${PYSITELIB}/Cython/Includes/python_cobject.pxd +${PYSITELIB}/Cython/Includes/python_complex.pxd +${PYSITELIB}/Cython/Includes/python_dict.pxd +${PYSITELIB}/Cython/Includes/python_exc.pxd +${PYSITELIB}/Cython/Includes/python_float.pxd +${PYSITELIB}/Cython/Includes/python_function.pxd +${PYSITELIB}/Cython/Includes/python_getargs.pxd +${PYSITELIB}/Cython/Includes/python_instance.pxd +${PYSITELIB}/Cython/Includes/python_int.pxd +${PYSITELIB}/Cython/Includes/python_iterator.pxd +${PYSITELIB}/Cython/Includes/python_list.pxd +${PYSITELIB}/Cython/Includes/python_long.pxd +${PYSITELIB}/Cython/Includes/python_mapping.pxd +${PYSITELIB}/Cython/Includes/python_mem.pxd +${PYSITELIB}/Cython/Includes/python_method.pxd +${PYSITELIB}/Cython/Includes/python_module.pxd +${PYSITELIB}/Cython/Includes/python_number.pxd +${PYSITELIB}/Cython/Includes/python_object.pxd +${PYSITELIB}/Cython/Includes/python_oldbuffer.pxd +${PYSITELIB}/Cython/Includes/python_pycapsule.pxd +${PYSITELIB}/Cython/Includes/python_ref.pxd +${PYSITELIB}/Cython/Includes/python_sequence.pxd +${PYSITELIB}/Cython/Includes/python_set.pxd +${PYSITELIB}/Cython/Includes/python_string.pxd +${PYSITELIB}/Cython/Includes/python_tuple.pxd +${PYSITELIB}/Cython/Includes/python_type.pxd +${PYSITELIB}/Cython/Includes/python_unicode.pxd +${PYSITELIB}/Cython/Includes/python_version.pxd +${PYSITELIB}/Cython/Includes/python_weakref.pxd +${PYSITELIB}/Cython/Includes/stdio.pxd +${PYSITELIB}/Cython/Includes/stdlib.pxd +${PYSITELIB}/Cython/Plex/Actions.py +${PYSITELIB}/Cython/Plex/Actions.pyc +${PYSITELIB}/Cython/Plex/Actions.pyo +${PYSITELIB}/Cython/Plex/DFA.py +${PYSITELIB}/Cython/Plex/DFA.pyc +${PYSITELIB}/Cython/Plex/DFA.pyo +${PYSITELIB}/Cython/Plex/Errors.py +${PYSITELIB}/Cython/Plex/Errors.pyc +${PYSITELIB}/Cython/Plex/Errors.pyo +${PYSITELIB}/Cython/Plex/Lexicons.py +${PYSITELIB}/Cython/Plex/Lexicons.pyc +${PYSITELIB}/Cython/Plex/Lexicons.pyo +${PYSITELIB}/Cython/Plex/Machines.py +${PYSITELIB}/Cython/Plex/Machines.pyc +${PYSITELIB}/Cython/Plex/Machines.pyo +${PYSITELIB}/Cython/Plex/Regexps.py +${PYSITELIB}/Cython/Plex/Regexps.pyc +${PYSITELIB}/Cython/Plex/Regexps.pyo +${PYSITELIB}/Cython/Plex/Scanners.pxd +${PYSITELIB}/Cython/Plex/Scanners.py +${PYSITELIB}/Cython/Plex/Scanners.pyc +${PYSITELIB}/Cython/Plex/Scanners.pyo +${PYSITELIB}/Cython/Plex/Scanners.so +${PYSITELIB}/Cython/Plex/Timing.py +${PYSITELIB}/Cython/Plex/Timing.pyc +${PYSITELIB}/Cython/Plex/Timing.pyo +${PYSITELIB}/Cython/Plex/Traditional.py +${PYSITELIB}/Cython/Plex/Traditional.pyc +${PYSITELIB}/Cython/Plex/Traditional.pyo +${PYSITELIB}/Cython/Plex/Transitions.py +${PYSITELIB}/Cython/Plex/Transitions.pyc +${PYSITELIB}/Cython/Plex/Transitions.pyo +${PYSITELIB}/Cython/Plex/__init__.py +${PYSITELIB}/Cython/Plex/__init__.pyc +${PYSITELIB}/Cython/Plex/__init__.pyo +${PYSITELIB}/Cython/Plex/test_tm.py +${PYSITELIB}/Cython/Plex/test_tm.pyc +${PYSITELIB}/Cython/Plex/test_tm.pyo +${PYSITELIB}/Cython/Runtime/__init__.py +${PYSITELIB}/Cython/Runtime/__init__.pyc +${PYSITELIB}/Cython/Runtime/__init__.pyo +${PYSITELIB}/Cython/Runtime/refnanny.pyx +${PYSITELIB}/Cython/Runtime/refnanny.so +${PYSITELIB}/Cython/Shadow.py +${PYSITELIB}/Cython/Shadow.pyc +${PYSITELIB}/Cython/Shadow.pyo +${PYSITELIB}/Cython/StringIOTree.py +${PYSITELIB}/Cython/StringIOTree.pyc +${PYSITELIB}/Cython/StringIOTree.pyo +${PYSITELIB}/Cython/TestUtils.py +${PYSITELIB}/Cython/TestUtils.pyc +${PYSITELIB}/Cython/TestUtils.pyo +${PYSITELIB}/Cython/Tests/TestCodeWriter.py +${PYSITELIB}/Cython/Tests/TestCodeWriter.pyc +${PYSITELIB}/Cython/Tests/TestCodeWriter.pyo +${PYSITELIB}/Cython/Tests/__init__.py +${PYSITELIB}/Cython/Tests/__init__.pyc +${PYSITELIB}/Cython/Tests/__init__.pyo +${PYSITELIB}/Cython/Utils.py +${PYSITELIB}/Cython/Utils.pyc +${PYSITELIB}/Cython/Utils.pyo +${PYSITELIB}/Cython/__init__.py +${PYSITELIB}/Cython/__init__.pyc +${PYSITELIB}/Cython/__init__.pyo +${PYSITELIB}/cython.py +${PYSITELIB}/cython.pyc +${PYSITELIB}/cython.pyo +${PYSITELIB}/pyximport/__init__.py +${PYSITELIB}/pyximport/__init__.pyc +${PYSITELIB}/pyximport/__init__.pyo +${PYSITELIB}/pyximport/pyxbuild.py +${PYSITELIB}/pyximport/pyxbuild.pyc +${PYSITELIB}/pyximport/pyxbuild.pyo +${PYSITELIB}/pyximport/pyximport.py +${PYSITELIB}/pyximport/pyximport.pyc +${PYSITELIB}/pyximport/pyximport.pyo diff --git a/devel/py-cython/buildlink3.mk b/devel/py-cython/buildlink3.mk new file mode 100644 index 00000000000..8711f7c1f25 --- /dev/null +++ b/devel/py-cython/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/07/15 17:41:57 drochner Exp $ + +BUILDLINK_TREE+= pycython + +.if !defined(PY_CYTHON_BUILDLINK3_MK) +PY_CYTHON_BUILDLINK3_MK:= + +.include "../../lang/python/pyversion.mk" + +BUILDLINK_API_DEPENDS.pycython+= ${PYPKGPREFIX}-cython>=0.12.1 +BUILDLINK_PKGSRCDIR.pycython?= ../../devel/py-cython + +.endif # PY_CYTHON_BUILDLINK3_MK + +BUILDLINK_TREE+= -pycython diff --git a/devel/py-cython/distinfo b/devel/py-cython/distinfo new file mode 100644 index 00000000000..e19db69db9f --- /dev/null +++ b/devel/py-cython/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2010/07/15 17:41:57 drochner Exp $ + +SHA1 (Cython-0.12.1.tar.gz) = a56859f0b17e9db15da6f292f6a79ac47195e5f7 +RMD160 (Cython-0.12.1.tar.gz) = d1690e1f308bda8dd332cbded831bae59ba03207 +Size (Cython-0.12.1.tar.gz) = 535239 bytes +SHA1 (patch-aa) = d51b7d17a69857ce8a682cc2ae762a30610c4d40 +SHA1 (patch-ab) = 92c8395af17b62ab9f9ecaad932c453d06e49e21 +SHA1 (patch-ac) = 5c5c6f349bda6fb29d816ef6a7784175adb95974 diff --git a/devel/py-cython/patches/patch-aa b/devel/py-cython/patches/patch-aa new file mode 100644 index 00000000000..a33e8b3638b --- /dev/null +++ b/devel/py-cython/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2010/07/15 17:41:57 drochner Exp $ + +--- setup.py.orig 2010-02-02 10:11:17.000000000 +0000 ++++ setup.py +@@ -68,7 +68,7 @@ if 'setuptools' in sys.modules: + scripts = [] + else: + if os.name == "posix": +- scripts = ["bin/cython"] ++ scripts = ["bin/cython" + sys.version[0:3]] + else: + scripts = ["cython.py"] + diff --git a/devel/py-cython/patches/patch-ab b/devel/py-cython/patches/patch-ab new file mode 100644 index 00000000000..217d3b01d03 --- /dev/null +++ b/devel/py-cython/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2010/07/15 17:41:57 drochner Exp $ + +--- runtests.py.orig 2010-02-02 10:11:17.000000000 +0000 ++++ runtests.py +@@ -604,7 +604,7 @@ class EmbedTest(unittest.TestCase): + os.chdir(self.old_dir) + + def test_embed(self): +- self.assert_(os.system("make test > make.output") == 0) ++ self.assert_(os.system("gmake test PYTHON=%s > make.output" % sys.executable) == 0) + + class MissingDependencyExcluder: + def __init__(self, deps): diff --git a/devel/py-cython/patches/patch-ac b/devel/py-cython/patches/patch-ac new file mode 100644 index 00000000000..341b6c5b796 --- /dev/null +++ b/devel/py-cython/patches/patch-ac @@ -0,0 +1,33 @@ +$NetBSD: patch-ac,v 1.1.1.1 2010/07/15 17:41:57 drochner Exp $ + +--- Demos/embed/Makefile.orig 2010-02-02 10:11:16.000000000 +0000 ++++ Demos/embed/Makefile +@@ -1,17 +1,17 @@ + # 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 -L$(PYPREFIX)/lib ++ gcc -o $@ $^ $(LINKFORSHARED) -lpython$(PYVERSION) -lm -lpthread -lutil -L$(PYPREFIX)/lib -Wl,-R$(PYPREFIX)/lib + + embedded.o: embedded.c + gcc -c $^ $(INCLUDES) + + embedded.c: embedded.pyx +- @python ../../cython.py --embed embedded.pyx ++ @${PYTHON} ../../cython.py --embed embedded.pyx + + all: embedded + +@@ -21,4 +21,4 @@ clean: + + test: clean all + ./embedded > test.output +- python assert_equal.py embedded.output test.output ++ ${PYTHON} assert_equal.py embedded.output test.output |