[Python-modules-team] Bug#889039: python-networkmanager: python-networkmanager does not contain code
Ana Rodriguez Lopez
rodrilopez.ana at gmail.com
Thu Feb 1 11:38:55 UTC 2018
Package: python-networkmanager
Version: 2.0.1-1
Severity: normal
Dear maintainer,
I tried to build your package from the Debian git and the python2
version does not contain the actual code, only docs. I changed
debian/rules as follows:
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
And also removed debian/python3-networkmanager.install.
Thanks,
Ana
More information about the Python-modules-team
mailing list