diff options
author | Jose M. Guisado Gomez <guigom@riseup.net> | 2023-02-22 11:20:55 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-03-15 22:28:59 +0100 |
commit | 1acc2fd48c755a8931fa87b8d0560b750316059f (patch) | |
tree | 3692f7f7024edbc8b9d33b76ac1397e5bc177f5c /py | |
parent | 275989737ec4ad8afb094f2653560de48b3af682 (diff) |
py: replace distutils with setuptools
Removes a deprecation warning when using distutils and python >=3.10.
Python distutils module is formally marked as deprecated since python
3.10 and will be removed from the standard library from Python 3.12.
(https://peps.python.org/pep-0632/)
From https://setuptools.pypa.io/en/latest/setuptools.html
"""
Packages built and distributed using setuptools look to the user like
ordinary Python packages based on the distutils.
"""
Signed-off-by: Jose M. Guisado Gomez <guigom@riseup.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'py')
-rwxr-xr-x | py/setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/setup.py b/py/setup.py index 72fc8fd9..8ad73e7b 100755 --- a/py/setup.py +++ b/py/setup.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -from distutils.core import setup +from setuptools import setup from nftables import NFTABLES_VERSION setup(name='nftables', |