[Python-modules-commits] r19521 - in packages/pyzmq/trunk/debian (changelog control rules)

jtaylor-guest at users.alioth.debian.org jtaylor-guest at users.alioth.debian.org
Mon Dec 5 20:37:31 UTC 2011


    Date: Monday, December 5, 2011 @ 20:37:29
  Author: jtaylor-guest
Revision: 19521

* add python3 packages (Closes: #636484)

Modified:
  packages/pyzmq/trunk/debian/changelog
  packages/pyzmq/trunk/debian/control
  packages/pyzmq/trunk/debian/rules

Modified: packages/pyzmq/trunk/debian/changelog
===================================================================
--- packages/pyzmq/trunk/debian/changelog	2011-12-05 20:37:17 UTC (rev 19520)
+++ packages/pyzmq/trunk/debian/changelog	2011-12-05 20:37:29 UTC (rev 19521)
@@ -6,8 +6,9 @@
   * do not delete *_d.so files from lib/debug in python-zmq-dbg
     - needed for gdb when using debug interpreter
   * fix dep5 copyright syntax error
+  * add python3 packages (Closes: #636484)
 
- -- Julian Taylor <jtaylor.debian at googlemail.com>  Sun, 04 Dec 2011 16:48:54 +0100
+ -- Julian Taylor <jtaylor.debian at googlemail.com>  Sun, 04 Dec 2011 17:06:13 +0100
 
 pyzmq (2.1.10-1) unstable; urgency=low
 

Modified: packages/pyzmq/trunk/debian/control
===================================================================
--- packages/pyzmq/trunk/debian/control	2011-12-05 20:37:17 UTC (rev 19520)
+++ packages/pyzmq/trunk/debian/control	2011-12-05 20:37:29 UTC (rev 19521)
@@ -5,9 +5,10 @@
 Uploaders: Miguel Landaeta <miguel at miguel.cc>
 Build-Depends: debhelper (>= 7.0.50~),
  python-all-dev (>= 2.6.6-3~), python-all-dbg (>= 2.6.6-3~), python-setuptools, cython-dbg (>= 0.13),
- libzmq-dev (>= 2.1.10), libzmq-dev (<= 2.1.11)
+ libzmq-dev (>= 2.1.10), libzmq-dev (<= 2.1.11), python3-all-dev (>= 3.2), python3-all-dbg (>= 3.2)
 Standards-Version: 3.9.2
 X-Python-Version: >= 2.4
+X-Python3-Version: >= 3.2
 Homepage: http://www.zeromq.org/bindings:python
 Vcs-Svn: svn://svn.debian.org/svn/python-modules/packages/pyzmq/trunk
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pyzmq/trunk/
@@ -26,7 +27,7 @@
  products. 0MQ sockets provide an abstraction of asynchronous
  message queues, multiple messaging patterns, message
  filtering (subscriptions), seamless access to multiple
- transport protocols and more. 
+ transport protocols and more.
  
 Package: python-zmq-dbg
 Section: debug
@@ -46,6 +47,46 @@
  products. 0MQ sockets provide an abstraction of asynchronous
  message queues, multiple messaging patterns, message
  filtering (subscriptions), seamless access to multiple
- transport protocols and more. 
+ transport protocols and more.
  .
  This package contains the extension built for the Python debug interpreter.
+
+Package: python3-zmq
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, ${python3:Depends}
+Description: Python bindings for 0MQ library
+ Python bindings for 0MQ. 0MQ is a small, fast, and free
+ software library that gives you message-passing concurrency
+ for applications in most common languages.
+ .
+ The 0MQ lightweight messaging kernel is a library which
+ extends the standard socket interfaces with features
+ traditionally provided by specialised messaging middleware
+ products. 0MQ sockets provide an abstraction of asynchronous
+ message queues, multiple messaging patterns, message
+ filtering (subscriptions), seamless access to multiple
+ transport protocols and more.
+ .
+ This package contains the extension built for the Python3 interpreter.
+
+Package: python3-zmq-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends},
+ python3-zmq (= ${binary:Version})
+Recommends: python-dbg
+Description: Python bindings for 0MQ library - debugging files
+ Python bindings for 0MQ. 0MQ is a small, fast, and free
+ software library that gives you message-passing concurrency
+ for applications in most common languages.
+ .
+ The 0MQ lightweight messaging kernel is a library which
+ extends the standard socket interfaces with features
+ traditionally provided by specialised messaging middleware
+ products. 0MQ sockets provide an abstraction of asynchronous
+ message queues, multiple messaging patterns, message
+ filtering (subscriptions), seamless access to multiple
+ transport protocols and more.
+ .
+ This package contains the extension built for the Python3 debug interpreter.

Modified: packages/pyzmq/trunk/debian/rules
===================================================================
--- packages/pyzmq/trunk/debian/rules	2011-12-05 20:37:17 UTC (rev 19520)
+++ packages/pyzmq/trunk/debian/rules	2011-12-05 20:37:29 UTC (rev 19521)
@@ -1,7 +1,17 @@
 #!/usr/bin/make -f
+
+PY3VERS = $(shell py3versions -rv)
+
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3
 
+override_dh_auto_build:
+	dh_auto_build
+	set -e && for pyv in $(PY3VERS); do \
+	  python$$pyvers setup.py build ; \
+	  python$${pyv}-dbg setup.py build ; \
+	done
+
 override_dh_auto_clean:
 	-dh_auto_clean
 	find zmq -name '*.c' -delete
@@ -10,11 +20,22 @@
 
 override_dh_install:
 	# Install everything excluding the *_d.so debug extensions to python-zmq
-	dh_install -X"*_d.so" "debian/tmp/*" -p python-zmq
+	dh_install -X"*_d.so" "debian/tmp/usr/lib/python2.*" -p python-zmq
 
 	# Install the debug extensions to python-zmq-dbg
-	dh_install "usr/lib/python*/*-packages/zmq/*/*_d.so" -p python-zmq-dbg
+	dh_install "usr/lib/python2.*/*-packages/zmq/*/*_d.so" -p python-zmq-dbg
 
+	# Install python3 files
+	set -e && for pyv in $(PY3VERS); do \
+	  python$$pyv setup.py install --install-layout=deb \
+		--force --no-compile -O0 --root=$(CURDIR)/debian/python3-zmq; \
+	  python$${pyv}-dbg setup.py install --install-layout=deb \
+		--force --no-compile -O0 --root=$(CURDIR)/debian/python3-zmq-dbg; \
+	done
+	# remove a couple of header files already in python3-zmq
+	find debian/python3-zmq-dbg/usr/lib/ ! -type d ! -name '*.so' -delete
+
+
 	# Continue with regular dh_install
 	dh_install
 
@@ -28,11 +49,20 @@
 			$$python$$build setup.py test; \
 		done; \
 	done
+	set -e; \
+	for python in $(PY3VERS); do \
+		for build in \  -dbg; do \
+			find zmq -name '*.so' -delete; \
+			python$$python$$build setup.py build_ext --inplace; \
+			python$$python$$build setup.py test; \
+		done; \
+	done
 endif
 
 override_dh_strip:
 ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
-	dh_strip --dbg-package=python-zmq-dbg
+	dh_strip -Xpython3 --dbg-package=python-zmq-dbg
+	dh_strip -X"python2.*" --dbg-package=python3-zmq-dbg
 endif
 
 get-orig-source:




More information about the Python-modules-commits mailing list