python3: update debian files to build python3 deb

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
Julien Fortin 2020-01-08 12:22:58 +01:00
parent 0e936c3ffa
commit 516fd7266f
3 changed files with 8 additions and 16 deletions

14
debian/control vendored
View File

@ -4,21 +4,21 @@ Priority: optional
Maintainer: Julien Fortin <julien@cumulusnetworks.com>
Build-Depends: debhelper (>=9),
dh-systemd,
dh-python,
python-all,
python-setuptools,
python-docutils
python3,
python3-all,
python3-setuptools,
python3-docutils
Standards-Version: 4.2.1
Homepage: https://github.com/cumulusnetworks/ifupdown2
X-Python-Version: >= 2.7
X-Python-Version: >= 3.7
Package: ifupdown2
Architecture: all
Provides: ifupdown
Conflicts: ifupdown
Replaces: ifupdown
Depends: ${python:Depends}, ${misc:Depends}, iproute2, python-argcomplete, python-ipaddr
Suggests: isc-dhcp-client, bridge-utils, ethtool, python-gvgen, python-mako
Depends: ${python:Depends}, ${misc:Depends}, iproute2, python3-argcomplete
Suggests: isc-dhcp-client, bridge-utils, ethtool, python3-gvgen, python3-mako
Description: Network Interface Management tool similar to ifupdown
ifupdown2 is ifupdown re-written in Python. It replaces ifupdown and provides
the same user interface as ifupdown for network interface configuration.

View File

@ -92,14 +92,6 @@ case "$1" in
process_udev
chmod +x /usr/share/ifupdown2/__main__.py
postinst_remove_diverts
#### WORK AROUND
# We have to manually install pip3
# apt-get install python3-pip -y
echo "Please make sure that python3-pip is installed, run: apt-get install python3-pip -y"
pip3 install wheel
pip3 install setuptools
pip3 install ipaddr
;;
abort-upgrade|abort-remove|abort-deconfigure)

2
debian/rules vendored
View File

@ -5,7 +5,7 @@ export PYBUILD_NAME=ifupdown2
export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/ --install-scripts=/usr/share/
%:
dh $@ --with python2 --with systemd --buildsystem=pybuild
dh $@ --with=python3 --with systemd --buildsystem=pybuild
override_dh_installman:
./ifupdown2/man/genmanpages.sh ./ifupdown2/man ./man