[Python-modules-commits] [python-cassandra-driver] 07/09: build arch:any and debug pkgs now that this prj contains extensions

Sandro Tosi morph at moszumanska.debian.org
Sun Jun 12 22:23:44 UTC 2016


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

morph pushed a commit to branch master
in repository python-cassandra-driver.

commit 9b6636ae5dc237fb4eb0325cb2f39f4cc463d7cd
Author: Sandro Tosi <morph at debian.org>
Date:   Sun Jun 12 22:57:18 2016 +0100

    build arch:any and debug pkgs now that this prj contains extensions
---
 debian/changelog |  3 ++-
 debian/control   | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++-----
 debian/rules     | 16 +++++++++++++---
 3 files changed, 68 insertions(+), 9 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 81b57db..70db578 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,11 +8,12 @@ python-cassandra-driver (3.4.1-1) UNRELEASED; urgency=medium
   * debian/copyright
     - extend packaging copyright years
     - update upstream copyright years
+  * build arch:any and debug pkgs now that this prj contains extensions
 
   [ Ondřej Nový ]
   * Fixed VCS URL (https)
 
- -- Sandro Tosi <morph at debian.org>  Sat, 11 Jun 2016 21:30:14 +0100
+ -- Sandro Tosi <morph at debian.org>  Sun, 12 Jun 2016 22:56:46 +0100
 
 python-cassandra-driver (2.5.1-1) unstable; urgency=low
 
diff --git a/debian/control b/debian/control
index 451c45e..957e727 100644
--- a/debian/control
+++ b/debian/control
@@ -3,15 +3,15 @@ Section: python
 Priority: optional
 Maintainer: Sandro Tosi <morph at debian.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 9), python, python3, python-setuptools, python3-setuptools, libev-dev
+Build-Depends: debhelper (>= 9), python-all-dev, python3-all-dev, python-all-dbg, python3-all-dbg, python-setuptools, python3-setuptools, libev-dev, cython, cython3
 Standards-Version: 3.9.6
 Homepage: https://github.com/datastax/python-driver
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-cassandra-driver.git
 Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-cassandra-driver.git
 
 Package: python-cassandra
-Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}
+Architecture: any
+Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends}
 Suggests: python-snappy, python-lz4, python-blist
 Description: Python driver for Apache Cassandra
  A modern, feature-rich and highly-tunable Python client library for Apache
@@ -29,9 +29,33 @@ Description: Python driver for Apache Cassandra
   * Concurrent execution utilities
   * Object mapper
 
+Package: python-cassandra-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends}, python-cassandra (= ${binary:Version}),
+Suggests: python-snappy, python-lz4, python-blist
+Description: Python driver for Apache Cassandra (debug)
+ A modern, feature-rich and highly-tunable Python client library for Apache
+ Cassandra (1.2+) and DataStax Enterprise (3.1+) using exclusively Cassandra's
+ binary protocol and Cassandra Query Language v3.
+ .
+ Features:
+  * Synchronous and Asynchronous APIs
+  * Simple, Prepared, and Batch statements
+  * Asynchronous IO, parallel execution, request pipelining
+  * Connection pooling
+  * Automatic node discovery
+  * Automatic reconnection
+  * Configurable load balancing and retry policies
+  * Concurrent execution utilities
+  * Object mapper
+ .
+ This package contains the debug extension for python-cassandra
+
 Package: python3-cassandra
-Architecture: all
-Depends: ${python3:Depends}, ${misc:Depends}
+Architecture: any
+Depends: ${python3:Depends}, ${misc:Depends}, ${shlibs:Depends}
 Suggests: python3-blist
 Description: Python driver for Apache Cassandra (Python 3)
  A modern, feature-rich and highly-tunable Python client library for Apache
@@ -50,3 +74,27 @@ Description: Python driver for Apache Cassandra (Python 3)
   * Object mapper
  .
  This package contains the Python 3.x module for python-cassandra
+
+Package: python3-cassandra-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${python3:Depends}, ${misc:Depends}, ${shlibs:Depends}, python3-cassandra (= ${binary:Version})
+Suggests: python3-blist
+Description: Python driver for Apache Cassandra (Python 3 debug)
+ A modern, feature-rich and highly-tunable Python client library for Apache
+ Cassandra (1.2+) and DataStax Enterprise (3.1+) using exclusively Cassandra's
+ binary protocol and Cassandra Query Language v3.
+ .
+ Features:
+  * Synchronous and Asynchronous APIs
+  * Simple, Prepared, and Batch statements
+  * Asynchronous IO, parallel execution, request pipelining
+  * Connection pooling
+  * Automatic node discovery
+  * Automatic reconnection
+  * Configurable load balancing and retry policies
+  * Concurrent execution utilities
+  * Object mapper
+ .
+ This package contains the debug extensions for python3-cassandra
diff --git a/debian/rules b/debian/rules
index 6b6ee4d..1da1735 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,9 +3,19 @@
 %:
 	dh $@ --with python2,python3
 
-override_dh_install:
-	python  setup.py install --install-layout=deb --root $(CURDIR)/debian/python-cassandra
-	python3 setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-cassandra
+override_dh_auto_install:
+	python      setup.py install --install-layout=deb --root $(CURDIR)/debian/python-cassandra
+	python-dbg  setup.py install --install-layout=deb --root $(CURDIR)/debian/python-cassandra-dbg
+	python3     setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-cassandra
+	python3-dbg setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-cassandra-dbg
+
+	rm -rf debian/python*-dbg/usr/lib/python*/dist-packages/cassandra/numpyFlags.h
+
+override_dh_strip:
+ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+	dh_strip -ppython-cassandra  --dbg-package=python-cassandra-dbg
+	dh_strip -ppython3-cassandra --dbg-package=python3-cassandra-dbg
+endif
 
 override_dh_installdocs:
 	dh_installdocs README.rst

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-cassandra-driver.git



More information about the Python-modules-commits mailing list