[Python-modules-commits] r22190 - in packages/pyinotify/trunk/debian (4 files)

odyx at users.alioth.debian.org odyx at users.alioth.debian.org
Sat Jun 16 11:12:04 UTC 2012


    Date: Saturday, June 16, 2012 @ 11:11:59
  Author: odyx
Revision: 22190

Add python3 packages.

Closes: #672187
Patch-by: Barry Warsaw <barry at python.org>

Added:
  packages/pyinotify/trunk/debian/python-pyinotify.install
  packages/pyinotify/trunk/debian/python3-pyinotify.install
Modified:
  packages/pyinotify/trunk/debian/control
  packages/pyinotify/trunk/debian/rules

Modified: packages/pyinotify/trunk/debian/control
===================================================================
--- packages/pyinotify/trunk/debian/control	2012-06-16 09:16:12 UTC (rev 22189)
+++ packages/pyinotify/trunk/debian/control	2012-06-16 11:11:59 UTC (rev 22190)
@@ -3,12 +3,13 @@
 Priority: optional
 Maintainer: Mikhail Gusarov <dottedmag at debian.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7.0.50~), python (>= 2.6.6-3~)
+Build-Depends: debhelper (>= 7.0.50~), python (>= 2.6.6-3~), python3
 Build-Depends-Indep: python-epydoc
 Standards-Version: 3.9.3
 Homepage: https://github.com/seb-m/pyinotify
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyinotify/trunk/
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pyinotify/trunk/
+X-Python3-Version: >= 3.2
 
 Package: python-pyinotify
 Architecture: all
@@ -21,11 +22,24 @@
  inotify is a Linux Kernel feature available since 2.6.13. inotify makes
  it possible for applications to easily be notified of filesystem changes.
 
+Package: python3-pyinotify
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Provides: ${python3:Provides}
+Suggests: python-pyinotify-doc
+Description: simple Linux inotify Python bindings
+ pyinotify is a simple wrapper for the Linux inotify mechanism.
+ .
+ inotify is a Linux Kernel feature available since 2.6.13. inotify makes
+ it possible for applications to easily be notified of filesystem changes.
+ .
+ This is the Python 3 version of the package.
+
 Package: python-pyinotify-doc
 Architecture: all
 Section: doc
 Depends: ${misc:Depends}
-Recommends: python-pyinotify
+Recommends: python-pyinotify, python3-pyinotify
 Description: simple Linux inotify Python bindings -- documentation
  pyinotify is a simple wrapper for the Linux inotify mechanism.
  .

Added: packages/pyinotify/trunk/debian/python-pyinotify.install
===================================================================
--- packages/pyinotify/trunk/debian/python-pyinotify.install	                        (rev 0)
+++ packages/pyinotify/trunk/debian/python-pyinotify.install	2012-06-16 11:11:59 UTC (rev 22190)
@@ -0,0 +1 @@
+usr/lib/python2*

Added: packages/pyinotify/trunk/debian/python3-pyinotify.install
===================================================================
--- packages/pyinotify/trunk/debian/python3-pyinotify.install	                        (rev 0)
+++ packages/pyinotify/trunk/debian/python3-pyinotify.install	2012-06-16 11:11:59 UTC (rev 22190)
@@ -0,0 +1 @@
+usr/lib/python3

Modified: packages/pyinotify/trunk/debian/rules
===================================================================
--- packages/pyinotify/trunk/debian/rules	2012-06-16 09:16:12 UTC (rev 22189)
+++ packages/pyinotify/trunk/debian/rules	2012-06-16 11:11:59 UTC (rev 22190)
@@ -1,16 +1,29 @@
 #!/usr/bin/make -f
 
+PYTHON3=$(shell py3versions -vr)
+
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3
 
 override_dh_auto_clean:
 	dh_auto_clean -- --all
 
+	rm -rf build
+	rm -rf *.egg-info
 	rm -rf html
 	[ ! -e docstrings.orig ] || mv docstrings.orig docstrings
 
-override_dh_auto_install:
-	dh_auto_install --destdir=$(CURDIR)/debian/python-pyinotify -- --install-layout=deb
+build-python%:
+	python$* setup.py build
 
+override_dh_auto_build: $(PYTHON3:%=build-python%)
+	dh_auto_build
+
+install-python%:
+	python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+
+override_dh_auto_install: $(PYTHON3:%=install-python%)
+	dh_auto_install
+
 	[ ! -e docstrings ] || mv docstrings docstrings.orig
 	epydoc python2/pyinotify.py




More information about the Python-modules-commits mailing list