[libgpuarray] 15/21: Provide debug packages for Python
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 4cfece7746fdb050027cfdf683499788027bc6c3
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Mon Jul 17 09:31:29 2017 +0100
Provide debug packages for Python
---
debian/control | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
debian/rules | 9 +++++++++
2 files changed, 57 insertions(+)
diff --git a/debian/control b/debian/control
index 339f7a4..12c4aa1 100644
--- a/debian/control
+++ b/debian/control
@@ -4,16 +4,22 @@ Section: libs
Priority: optional
Build-Depends: cmake,
cython,
+ cython-dbg,
cython3,
+ cython3-dbg,
debhelper (>= 10),
dh-python,
libclblas-dev,
opencl-dev,
+ python-all-dbg,
python-all-dev,
python-numpy,
+ python-numpy-dbg,
python-setuptools,
+ python3-all-dbg,
python3-all-dev,
python3-numpy,
+ python3-numpy-dbg,
python3-setuptools
Standards-Version: 4.0.0
Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/libgpuarray.git
@@ -73,6 +79,27 @@ Description: language bindings for libgpuarray (Python 2)
.
This package provides the language bindings for Python 2.
+Package: python-pygpu-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${misc:Depends},
+ ${python:Depends},
+ ${shlibs:Depends},
+ python-numpy-dbg,
+ python-pygpu (= ${binary:Version})
+Description: debug extensions for pygpu (Python 2)
+ libgpuarray provides a ndarray (multi-dimensional array) object which
+ is computed on the GPU. It supports int, single and double precision
+ floats.
+ .
+ libgpuarray supports Nvidia's CUDA interface as well as OpenCL. The
+ Debian packages have been build against OpenCL. However, the source
+ package could be rebuild locally also for CUDA (which is non-free)
+ without changes, if that's needed.
+ .
+ This package provides the debug extensions for Python 2.
+
Package: python3-pygpu
Architecture: any
Section: python
@@ -92,3 +119,24 @@ Description: language bindings for libgpuarray (Python 3)
without changes, if that's needed.
.
This package provides the language bindings for Python 3.
+
+Package: python3-pygpu-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${misc:Depends},
+ ${python:Depends},
+ ${shlibs:Depends},
+ python3-numpy-dbg,
+ python3-pygpu (= ${binary:Version})
+Description: debug extensions for pygpu (Python 3)
+ libgpuarray provides a ndarray (multi-dimensional array) object which
+ is computed on the GPU. It supports int, single and double precision
+ floats.
+ .
+ libgpuarray supports Nvidia's CUDA interface as well as OpenCL. The
+ Debian packages have been build against OpenCL. However, the source
+ package could be rebuild locally also for CUDA (which is non-free)
+ without changes, if that's needed.
+ .
+ This package provides the debug extensions for Python 3.
diff --git a/debian/rules b/debian/rules
index ac082b1..2ab1af1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,8 @@ 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
+export PYBUILD_AFTER_INSTALL_python2-dbg = rm -f {destdir}/{install_dir}/pygpu/*.h
+export PYBUILD_AFTER_INSTALL_python3-dbg = rm -f {destdir}/{install_dir}/pygpu/*.h
%:
dh $@ --with python2,python3 --buildsystem=pybuild
@@ -34,3 +36,10 @@ override_dh_python2:
override_dh_python3:
dh_python3
dh_numpy3
+
+override_dh_strip-arch:
+ dh_strip --package=python-$(PYBUILD_NAME) \
+ --dbg-package=python-$(PYBUILD_NAME)-dbg
+ dh_strip --package=python3-$(PYBUILD_NAME) \
+ --dbg-package=python3-$(PYBUILD_NAME)-dbg
+ dh_strip --arch
--
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