[Python-modules-commits] [python-networkmanager] 01/01: Fix Python 2 package by using pybuild (Closes: #889039).
Wolfgang Borgert
debacle at moszumanska.debian.org
Tue Feb 6 23:46:14 UTC 2018
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to branch master
in repository python-networkmanager.
commit ed5244927603aa880483b20d9aa797e1d455468a
Author: W. Martin Borgert <debacle at debian.org>
Date: Wed Feb 7 00:45:18 2018 +0100
Fix Python 2 package by using pybuild (Closes: #889039).
---
debian/changelog | 1 +
debian/python3-networkmanager.install | 1 -
debian/rules | 16 +++-------------
3 files changed, 4 insertions(+), 14 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index f9cce57..eede8c8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ python-networkmanager (2.0.1-2) UNRELEASED; urgency=medium
[ W. Martin Borgert <debacle at debian.org> 2018-02-06 ]
* Reflect license change in debian/copyright (Closes: #889034).
+ * Fix Python 2 package by using pybuild (Closes: #889039).
--
diff --git a/debian/python3-networkmanager.install b/debian/python3-networkmanager.install
deleted file mode 100644
index fef6392..0000000
--- a/debian/python3-networkmanager.install
+++ /dev/null
@@ -1 +0,0 @@
-/usr/lib/python3*
diff --git a/debian/rules b/debian/rules
index bb8cca4..8a2fe95 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,24 +1,14 @@
#!/usr/bin/make -f
-PYTHON2=$(shell pyversions -vr)
-PYTHON3=$(shell py3versions -vr)
+export PYBUILD_NAME=networkmanager
%:
- dh $@ --with python2,python3 --buildsystem=python_distutils
+ dh $@ --with python2,python3 --buildsystem=pybuild
-build-python%:
- python$* setup.py build
-
-override_dh_auto_build: $(PYTHON3:%=build-python%)
+override_dh_auto_build:
dh_auto_build
make -C docs html
-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
make -C docs clean
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-networkmanager.git
More information about the Python-modules-commits
mailing list