[numexpr] 02/03: Restore -dbg packages

Antonio Valentino a_valentino-guest at moszumanska.debian.org
Mon Aug 14 19:00:41 UTC 2017


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

a_valentino-guest pushed a commit to branch master
in repository numexpr.

commit 9cd529eefcfef97f1a1cda148b897d3e08649fdb
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date:   Mon Aug 14 16:24:09 2017 +0000

    Restore -dbg packages
---
 debian/changelog         |  6 ++++++
 debian/control           | 47 ++++++++++++++++++++++++++++++++++++++++++++++-
 debian/rules             | 32 +++++++++++++++++++++++++++++---
 debian/tests/control     |  6 ++++++
 debian/tests/python2-dbg | 13 +++++++++++++
 debian/tests/python3-dbg | 13 +++++++++++++
 6 files changed, 113 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d303a8c..00c368f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+numexpr (2.6.2-2) UNRELEASED; urgency=medium
+
+  * Restore -dbg packages
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Mon, 14 Aug 2017 16:23:38 +0000
+
 numexpr (2.6.2-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/control b/debian/control
index 2a00015..9fe028f 100644
--- a/debian/control
+++ b/debian/control
@@ -9,11 +9,15 @@ Priority: optional
 Build-Depends: debhelper (>= 9.0.0~),
                dh-python,
                python-all-dev,
+               python-all-dbg,
                python3-all-dev,
+               python3-all-dbg,
                python-setuptools,
                python3-setuptools,
                python-numpy,
-               python3-numpy
+               python-numpy-dbg,
+               python3-numpy,
+               python3-numpy-dbg
 Standards-Version: 4.0.0
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/numexpr.git
 Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/numexpr.git
@@ -35,6 +39,27 @@ Description: Fast numerical array expression evaluator for Python and NumPy
  .
  This is the Python 2 version of the package.
 
+Package: python-numexpr-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${python:Depends},
+         ${shlibs:Depends},
+         ${misc:Depends},
+         python-numexpr (= ${binary:Version}),
+         python-dbg,
+         python-numpy-dbg
+Description: Fast numerical array expression evaluator for Python and NumPy (debug ext)
+ Numexpr package evaluates multiple-operator array expressions many
+ times faster than NumPy can. It accepts the expression as a string,
+ analyzes it, rewrites it more efficiently, and compiles it to faster
+ Python code on the fly. It's the next best thing to writing the
+ expression in C and compiling it with a specialized just-in-time
+ (JIT) compiler, i.e. it does not require a compiler at runtime.
+ .
+ This package contains the extension built for the Python 2 debug
+ interpreter.
+
 Package: python3-numexpr
 Architecture: any
 Depends: ${python3:Depends},
@@ -51,3 +76,23 @@ Description: Fast numerical array expression evaluator for Python 3 and NumPy
  .
  This package contains numexpr for Python 3.
 
+Package: python3-numexpr-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${python3:Depends},
+         ${shlibs:Depends},
+         ${misc:Depends},
+         python3-numexpr (= ${binary:Version}),
+         python3-dbg,
+         python3-numpy-dbg
+Description: Fast numerical array expression evaluator for Python 3 and NumPy (debug ext)
+ Numexpr package evaluates multiple-operator array expressions many
+ times faster than NumPy can. It accepts the expression as a string,
+ analyzes it, rewrites it more efficiently, and compiles it to faster
+ Python code on the fly. It's the next best thing to writing the
+ expression in C and compiling it with a specialized just-in-time
+ (JIT) compiler, i.e. it does not require a compiler at runtime.
+ .
+ This package contains the extension built for the Python 3 debug
+ interpreter.
diff --git a/debian/rules b/debian/rules
index e7d971d..b7c95c5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,14 @@
 export PYBUILD_NAME=numexpr
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
 
+# Get the supported Python versions
+PY2VERS = $(shell pyversions -r -v)
+PY3VERS = $(shell py3versions -r -v)
+
+ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+export CFLAGS ?= -O0
+endif
+
 
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
@@ -17,6 +25,25 @@ override_dh_gencontrol:
 	dh_gencontrol
 
 
+override_dh_strip:
+	dh_strip -ppython-numexpr  --dbg-package=python-numexpr-dbg
+	dh_strip -ppython3-numexpr --dbg-package=python3-numexpr-dbg
+
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+
+	set -e -x;\
+	for py in $(PY2VERS) $(PY3VERS); do \
+		cd $(CURDIR)/.pybuild/pythonX.Y_$$py/build;\
+		env PYTHONPATH=. python$$py numexpr/tests/test_numexpr.py -v;\
+		cd $(CURDIR)/.pybuild/pythonX.Y-dbg_$$py/build;\
+		env PYTHONPATH=. python$$py-dbg numexpr/tests/test_numexpr.py -v;\
+	done
+
+endif
+
+
 override_dh_auto_clean:
 	dh_auto_clean
 	$(RM) -r build/ numexpr.egg-info/
@@ -26,6 +53,5 @@ override_dh_installchangelogs:
 	dh_installchangelogs -k RELEASE_NOTES.rst
 
 
-.PHONY: override_dh_gencontrol override_dh_auto_clean
-	override_dh_installchangelogs
-
+.PHONY: override_dh_gencontrol override_dh_strip override_dh_auto_clean \
+        override_dh_auto_test override_dh_installchangelogs
diff --git a/debian/tests/control b/debian/tests/control
index e6a13a3..17348a5 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,6 +1,12 @@
 Tests: python2
 Depends: python-numexpr, python-all
 
+Tests: python2-dbg
+Depends: python-numexpr-dbg, python-all-dbg
+
 Tests: python3
 Depends: python3-numexpr, python3-all
 
+Tests: python3-dbg
+Depends: python3-numexpr-dbg, python3-all-dbg
+
diff --git a/debian/tests/python2-dbg b/debian/tests/python2-dbg
new file mode 100644
index 0000000..383c0da
--- /dev/null
+++ b/debian/tests/python2-dbg
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -efu
+
+PYS=${PYS:-"$(pyversions -r 2>/dev/null)"}
+TESTPKG=${TESTPKG:-numexpr}
+
+cd "$ADTTMP"
+
+for py in $PYS; do
+    echo "=== $py ==="
+    $py-dbg -c "import $TESTPKG, sys; r=$TESTPKG.test(); sys.exit(0 if r.wasSuccessful() else 1)" 2>&1
+done
+
diff --git a/debian/tests/python3-dbg b/debian/tests/python3-dbg
new file mode 100644
index 0000000..62472c4
--- /dev/null
+++ b/debian/tests/python3-dbg
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -efu
+
+PYS=${PYS:-"$(py3versions -r 2>/dev/null)"}
+TESTPKG=${TESTPKG:-numexpr}
+
+cd "$ADTTMP"
+
+for py in $PYS; do
+    echo "=== $py ==="
+    $py-dbg -c "import $TESTPKG, sys; r=$TESTPKG.test(); sys.exit(0 if r.wasSuccessful() else 1)" 2>&1
+done
+

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



More information about the debian-science-commits mailing list