[libgpuarray] 11/21: Use pybuild as default build system

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Jul 17 09:13:39 UTC 2017


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

ghisvail-guest pushed a commit to branch master
in repository libgpuarray.

commit 22ef3eb57cd2faaaf4eca8fab2fc6e03b5024a54
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Sun Jul 16 23:37:23 2017 +0100

    Use pybuild as default build system
---
 debian/rules | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/debian/rules b/debian/rules
index c709b5d..4f6cc93 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,20 +2,30 @@
 #export DH_VERBOSE=1
 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
 
+export PYBUILD_NAME = pygpu
+export PYBUILD_SYSTEM = distutils
+export PYBUILD_BEFORE_BUILD = {interpreter} setup.py build_ext -b {build_dir} -I $(CURDIR)/src -L $(CURDIR)/lib
+
 %:
-	dh $@ --with python2,python3
+	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_auto_clean:
+	dh_auto_clean --buildsystem=cmake
+	dh_auto_clean
 
 override_dh_auto_configure:
 	dh_auto_configure --buildsystem=cmake
+	dh_auto_configure
+
+override_dh_auto_build:
+	dh_auto_build --buildsystem=cmake
+	dh_auto_build
 
 override_dh_auto_test:
 
 override_dh_auto_install:
+	dh_auto_install --buildsystem=cmake
 	dh_auto_install
-	for i in $$(pyversions -i); do $$i setup.py install --root=debian/python-pygpu --install-layout=deb; done
-	for i in $$(py3versions -i); do $$i setup.py install --root=debian/python3-pygpu --install-layout=deb; done
-	rm -rfv debian/python*-pygpu/usr/pygpu
-	# todo: build docs package
 
 override_dh_gencontrol:
 	dh_numpy

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



More information about the debian-science-commits mailing list