This is an automated email from the git hooks/post-receive script. sebastic pushed a commit to branch master in repository python-shapely.
commit 31481574f491cd49680848642ae6afce7442352f Author: Pietro Battiston <m...@pietrobattiston.it> Date: Mon Jan 20 11:16:52 2014 +0100 Patch: use "cythonize" for cythonization --- .../0001-Use-cythonize-for-cythonization.patch | 55 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 56 insertions(+) diff --git a/debian/patches/0001-Use-cythonize-for-cythonization.patch b/debian/patches/0001-Use-cythonize-for-cythonization.patch new file mode 100644 index 0000000..84abea8 --- /dev/null +++ b/debian/patches/0001-Use-cythonize-for-cythonization.patch @@ -0,0 +1,55 @@ +From: Pietro Battiston <m...@pietrobattiston.it> +Date: Mon, 20 Jan 2014 11:16:00 +0100 +Subject: Use "cythonize" for cythonization + +--- + setup.py | 29 ++--------------------------- + 1 file changed, 2 insertions(+), 27 deletions(-) + +diff --git a/setup.py b/setup.py +index 413a474..6aba026 100755 +--- a/setup.py ++++ b/setup.py +@@ -14,6 +14,7 @@ except ImportError: + from distutils.cmd import Command + from distutils.errors import CCompilerError, DistutilsExecError, \ + DistutilsPlatformError ++from Cython.Build import cythonize + import errno + import glob + import os +@@ -177,33 +178,7 @@ elif sys.platform == 'win32': + else: + libraries = ['geos_c'] + +-if os.path.exists("MANIFEST.in"): +- pyx_file = "shapely/speedups/_speedups.pyx" +- c_file = "shapely/speedups/_speedups.c" +- +- force_cython = False +- if 'sdist' in sys.argv: +- force_cython = True +- +- try: +- if (force_cython or not os.path.exists(c_file) +- or os.path.getmtime(pyx_file) > os.path.getmtime(c_file)): +- print("Updating C extension with Cython.", file=sys.stderr) +- subprocess.check_call(["cython", "shapely/speedups/_speedups.pyx"]) +- except (subprocess.CalledProcessError, OSError): +- print("Warning: Could not (re)create C extension with Cython.", +- file=sys.stderr) +- if force_cython: +- raise +- if not os.path.exists("shapely/speedups/_speedups.c"): +- print("Warning: speedup extension not found", file=sys.stderr) +- +-ext_modules = [ +- Extension( +- "shapely.speedups._speedups", +- ["shapely/speedups/_speedups.c"], +- libraries=libraries) +-] ++ext_modules = cythonize("shapely/speedups/_speedups.pyx") + + try: + # try building with speedups diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..04b5112 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-Use-cythonize-for-cythonization.patch -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/python-shapely.git _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel