diff options
author | Daniele Tricoli <eriol@mornie.org> | 2012-02-06 11:31:44 +0000 |
---|---|---|
committer | Daniele Tricoli <eriol@mornie.org> | 2012-02-06 11:31:44 +0000 |
commit | c3d8504ad9bcdb6980302825167b3606d64a94cf (patch) | |
tree | c406f6ab5c754fdd3ce400bfeb1f724eb42e6443 /debian/rules | |
parent | b9b90ae1e48f3ee9a7bc9ffe39b6b523ca25731f (diff) | |
download | python-urllib3-c3d8504ad9bcdb6980302825167b3606d64a94cf.tar python-urllib3-c3d8504ad9bcdb6980302825167b3606d64a94cf.tar.gz |
Build Python 3 package
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index c9ab0ae..511f2a9 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,29 @@ #!/usr/bin/make -f +PYVERS := $(shell pyversions -r) +PY3VERS := $(shell py3versions -r) + %: - dh $@ --with python2 --buildsystem=python_distutils + dh $@ --with python2,python3 --buildsystem=python_distutils + +override_dh_auto_build: + set -ex; \ + for python in $(PYVERS) $(PY3VERS); do \ + $$python setup.py build; \ + done + +override_dh_auto_install: + set -ex; \ + for python in $(PYVERS); do \ + $$python setup.py install --skip-build --root debian/python-urllib3 \ + --install-layout deb; \ + done + + set -ex; \ + for python in $(PY3VERS); do \ + $$python setup.py install --skip-build --root debian/python3-urllib3 \ + --install-layout deb; \ + done override_dh_installchangelogs: dh_installchangelogs CHANGES.rst |