diff --git a/debian/control b/debian/control index 7809864..56df954 100644 --- a/debian/control +++ b/debian/control @@ -4,21 +4,21 @@ Priority: optional Maintainer: Julien Fortin 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. diff --git a/debian/ifupdown2.postinst b/debian/ifupdown2.postinst index d41fa6e..3689256 100644 --- a/debian/ifupdown2.postinst +++ b/debian/ifupdown2.postinst @@ -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) diff --git a/debian/rules b/debian/rules index 6274b3a..ea6f434 100755 --- a/debian/rules +++ b/debian/rules @@ -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