[Python-modules-commits] r23127 - in packages/doublex/trunk/debian (control rules)
davidvilla-guest at users.alioth.debian.org
davidvilla-guest at users.alioth.debian.org
Mon Dec 3 19:29:13 UTC 2012
Date: Monday, December 3, 2012 @ 19:29:11
Author: davidvilla-guest
Revision: 23127
supporting python3
Modified:
packages/doublex/trunk/debian/control
packages/doublex/trunk/debian/rules
Modified: packages/doublex/trunk/debian/control
===================================================================
--- packages/doublex/trunk/debian/control 2012-12-03 00:09:04 UTC (rev 23126)
+++ packages/doublex/trunk/debian/control 2012-12-03 19:29:11 UTC (rev 23127)
@@ -3,8 +3,13 @@
Priority: optional
Maintainer: David Villa Alises <David.Villa at gmail.com>
Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7.0.50~), python (>= 2.6.6-3~)
-Standards-Version: 3.9.4
+Build-Depends:
+ debhelper (>= 7.0.50),
+ python-all (>= 2.6.6-3),
+ python-setuptools (>= 0.6b3),
+ python3-all,
+ python3-setuptools
+Standards-Version: 3.9.3
X-Python-Version: >= 2.6
Homepage: https://bitbucket.org/DavidVilla/python-doublex
Vcs-Svn: svn://svn.debian.org/python-modules/packages/doublex
Modified: packages/doublex/trunk/debian/rules
===================================================================
--- packages/doublex/trunk/debian/rules 2012-12-03 00:09:04 UTC (rev 23126)
+++ packages/doublex/trunk/debian/rules 2012-12-03 19:29:11 UTC (rev 23127)
@@ -7,10 +7,33 @@
ORIG_DIR=$(APP)-$(VERSION)
EXCLUDE=--exclude=debian --exclude=\*~ --exclude=.hg --exclude=.svn --exclude=\*.pyc
+# http://wiki.debian.org/Python/LibraryStyleGuide
+
+PYTHON2=$(shell pyversions -vr)
+PYTHON3=$(shell py3versions -vr)
+
%:
- dh $@ --with python2
+ dh $@ --with python2,python3
+
+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
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -rf build
+ rm -rf *.egg-info
+
get-orig-source:
$(ORIG_REPO) $(ORIG_DIR)
tar $(EXCLUDE) -czf $(APP)_$(VERSION).orig.tar.gz $(ORIG_DIR)
- $(RM) -r $(ORIG_DIR)
+ $(RM) -r $(ORIG_DIR)
\ No newline at end of file
More information about the Python-modules-commits
mailing list