aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorJeremy T. Bouse <jbouse@debian.org>2014-05-27 18:14:08 -0400
committerJeremy T. Bouse <jbouse@debian.org>2014-05-27 20:16:44 -0400
commitc49e3be5127ed87c91dfeaa38eaad2a48c836353 (patch)
treeac5741d1d460a3a6e8cfa27270a400409aa71a24 /debian/rules
parent4e57d8374075e7314e5f12c864e8f4eacc5ef6dd (diff)
downloadpython-paramiko-c49e3be5127ed87c91dfeaa38eaad2a48c836353.tar
python-paramiko-c49e3be5127ed87c91dfeaa38eaad2a48c836353.tar.gz
Add Python 3 support to build
Closes: #697600, #749512 Thanks: Thomas Goirand <zigo>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules37
1 files changed, 24 insertions, 13 deletions
diff --git a/debian/rules b/debian/rules
index 4703c01..16a5683 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,33 +1,44 @@
#!/usr/bin/make -f
-PYTHON2=$(shell pyversions -vr)
+PY3VERS=$(shell py3versions -vr)
%:
- dh $@ --with python2
-
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-test-python%:
- python$* setup.py test -vv
-
-override_dh_auto_test: $(PYTHON2:%=test-python%)
-endif
+ dh $@ --with python2,python3
build-python%:
python$* setup.py build
-override_dh_auto_build: $(PYTHON2:%=build-python%)
- dh_auto_build
+test-python%:
+ python$* setup.py test -vv
install-python%:
python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
-override_dh_auto_install: $(PYTHON2:%=install-python%)
+override_dh_auto_build: $(PY3VERS:%=build-python%)
+ dh_auto_build
+
+override_dh_auto_test: $(PY3VERS:%=test-python%)
+ dh_auto_test
+
+override_dh_auto_install: $(PY3VERS:%=install-python%)
dh_auto_install
-override_dh_installdocs:
+override_dh_install:
+ dh_install "debian/tmp/usr/lib/python2*" -p python-paramiko
+ dh_install "debian/tmp/usr/lib/python3*" -p python3-paramiko
+ dh_install
+
+override_dh_installdocs:
+ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
epydoc --no-private -o docs/ paramiko
+endif
dh_installdocs
+override_dh_clean:
+ dh_clean
+ rm -rf build
+ rm -rf docs/a*.* docs/b* docs/c* docs/e* docs/f* docs/h* docs/id* docs/l* docs/m* docs/pa* docs/r* docs/st* docs/t* docs/u*
+
# Commands not to run
override_dh_installcatalogs override_dh_installcron:
override_dh_installdebconf override_dh_installemacsen override_dh_installifupdown: