[python-scientific] 05/07: regenerate the cython files

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Thu Jan 23 16:41:00 UTC 2014


This is an automated email from the git hooks/post-receive script.

picca pushed a commit to branch master
in repository python-scientific.

commit 3efcafa253fab840ba8d0cb26f4ccc7869db5a1f
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date:   Thu Jan 23 13:52:14 2014 +0100

    regenerate the cython files
---
 debian/changelog | 2 ++
 debian/control   | 3 ++-
 debian/rules     | 4 ++++
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index ef9d6ad..09b3283 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ python-scientific (2.9.3-1) unstable; urgency=medium
 
   * Imported Upstream version 2.9.3
   * Bump Standards-Version 3.9.5 (nothing to do)
+  * Build-Depends on cython and use the .pyx files instead of the
+    pre-compiled .c extensions.
   * debian/patches
     - deleted (applyed by upstream)
       - 0001-replace-PyObject_NEW-Pyobject_new.patch
diff --git a/debian/control b/debian/control
index 7a20480..637ef52 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,8 @@ Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.
 Uploaders: Picca Frédéric-Emmanuel <picca at debian.org>
 Section: science
 Priority: extra
-Build-Depends: debhelper (>= 9),
+Build-Depends: cython,
+               debhelper (>= 9),
                libmpich2-dev,
                libnetcdf-dev,
                libopenmpi-dev [alpha amd64 armel armhf i386 ia64 powerpc powerpcspe ppc64 sparc sparc64 kfreebsd-i386 kfreebsd-amd64 hurd-i386],
diff --git a/debian/rules b/debian/rules
index f0b70d9..6e2ddc6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,8 @@
 # line of openmpipython in debian/control.
 export DH_VERBOSE=1
 
+export COMPILE_CYTHON=1
+
 OPENMPI_ARCH = alpha amd64 armel armhf i386 ia64 powerpc powerpcspe ppc64 sparc sparc64 kfreebsd-i386 kfreebsd-amd64 hurd-i386
 DEB_HOST_ARCH  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
@@ -17,6 +19,8 @@ PYTHON = /usr/bin/python #$(pv)
 override_dh_clean:
 	dh_clean
 	rm -f Src/MPI/mpipython.mpich2 Src/MPI/mpipython.openmpi
+# 	remove the cython generated file to force rebuild
+	rm -f $(patsubst %.pyx,%.c,$(wildcard Scientific/*.pyx))
 
 override_dh_auto_build:
 	dh_auto_build

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-scientific.git



More information about the debian-science-commits mailing list