1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

distutils: fix dependency and lib replacement

As of now, the distutils is deprecated with removal planned for
python 3.12.

The recommended way is to use setuptools which is an enhanced
alternative to distutils maintained by the python packaging authority.

This commit replace with setuptools the distutil import inserted in the
8126ef0c00eb8e2faae2cf1ca9fbaf25c10582cd commit.

This commit also update the debian control runtime dependency.

distutils: https://docs.python.org/3/library/distutils.html
setuptools: https://setuptools.pypa.io/en/latest/
This commit is contained in:
Adrien Banlin
2022-05-31 14:57:12 +02:00
parent 6bcb49088b
commit 793fb44ab0
2 changed files with 2 additions and 2 deletions

2
debian/control vendored
View File

@ -17,7 +17,7 @@ Architecture: all
Provides: ifupdown
Conflicts: ifupdown
Replaces: ifupdown
Depends: ${python3:Depends}, ${misc:Depends}, iproute2
Depends: ${python3:Depends}, ${misc:Depends}, iproute2, python3-setuptools
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

View File

@ -9,7 +9,7 @@ import json
import time
import subprocess
from distutils.util import strtobool
from setuptools.dist import strtobool
try:
from ifupdown2.lib.addon import AddonWithIpBlackList