[numexpr] 07/08: Switch to pybuild
Antonio Valentino
a_valentino-guest at moszumanska.debian.org
Wed Jun 28 20:22:29 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 eeec25cacb204141b9c4724e903feed75c77be09
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date: Wed Jun 28 19:44:18 2017 +0000
Switch to pybuild
---
debian/changelog | 1 +
debian/control | 2 --
debian/rules | 55 ++++++-------------------------------------------------
3 files changed, 7 insertions(+), 51 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 7f84ad9..1537159 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ numexpr (2.6.2-1) UNRELEASED; urgency=medium
* New upstream release
* Standard version bumped to 4.0.0
+ * Switch to pybuild
* debian/patches:
- drop 0001-fix-test-on-powerpc-and-ppc64el.patch and
0002-numpy-1.12-compatibility.patch: applied upstream
diff --git a/debian/control b/debian/control
index 61ff00b..2a00015 100644
--- a/debian/control
+++ b/debian/control
@@ -18,8 +18,6 @@ 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
Homepage: https://github.com/pydata/numexpr
-X-Python-Version: >= 2.6
-X-Python3-Version: >= 3.2
Package: python-numexpr
Architecture: any
diff --git a/debian/rules b/debian/rules
index 379446e..e7d971d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,60 +3,18 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+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=python_distutils
-
-
-build-python%:
- python$* setup.py build
-
-
-override_dh_auto_build: $(PY3VERS:%=build-python%)
- dh_auto_build
-
-
-install-python%:
- python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+ dh $@ --with python2,python3 --buildsystem=pybuild
-override_dh_auto_install: $(PY3VERS:%=install-python%)
- dh_auto_install
-
-
-override_dh_install:
- # Install everything excluding the *_d.so debug extensions to python-numexpr
- dh_install -X"*_d.so" "debian/tmp/usr/lib/python2*" -p python-numexpr
- find debian/python-numexpr -name '*_d.so' | xargs -r rm -f
- dh_install -X"*dmu.so" -X"*dm.so" "debian/tmp/usr/lib/python3*" -p python3-numexpr
- find debian/python3-numexpr -name '*.cpython-??dm-*.so' | xargs -r rm -f
-
- # Continue with regular dh_install
- dh_install
+override_dh_gencontrol:
dh_numpy
dh_numpy3
-
-
-override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-
- set -e -x;\
- for py in $(PY2VERS) $(PY3VERS); do \
- cd $(CURDIR)/build/lib.*-$$py;\
- env PYTHONPATH=. python$$py numexpr/tests/test_numexpr.py -v;\
- done
-
-endif
+ dh_gencontrol
override_dh_auto_clean:
@@ -68,7 +26,6 @@ override_dh_installchangelogs:
dh_installchangelogs -k RELEASE_NOTES.rst
-.PHONY: override_dh_auto_build override_dh_auto_install override_dh_install \
- override_dh_auto_test override_dh_auto_clean \
- override_dh_installchangelogs
+.PHONY: override_dh_gencontrol override_dh_auto_clean
+ override_dh_installchangelogs
--
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