[pyfai] 07/10: build the extensions with cython

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Mon Jan 13 23:05:30 UTC 2014


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

picca pushed a commit to branch experimental
in repository pyfai.

commit e81412c93a394dc2131f8b6f7cc2c32e3887a27e
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date:   Sat Dec 28 18:18:59 2013 +0100

    build the extensions with cython
---
 debian/control | 3 ++-
 debian/rules   | 6 ++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index d919f50..f261c9e 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,8 @@ Uploaders: Jerome Kieffer <jerome.kieffer at esrf.fr>,
            Picca Frédéric-Emmanuel <picca at debian.org>
 Section: science
 Priority: extra
-Build-Depends: debhelper (>= 9),
+Build-Depends: cython,
+               debhelper (>= 9),
                python-all-dev,
                python-fabio,
                python-fftw,
diff --git a/debian/rules b/debian/rules
index f3b223e..e8bc872 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,12 @@ export DH_VERBOSE=1
 
 PYVERS=$(shell pyversions -vs)
 
+override_dh_clean:
+	dh_clean
+
+	# remove the cython generated file to force rebuild
+	rm -f $(patsubst %.pyx,%.c,$(wildcard src/*.pyx))
+
 override_dh_auto_install:
 	dh_auto_install
 	dh_numpy

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



More information about the debian-science-commits mailing list