]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
py: replace distutils with setuptools
authorJose M. Guisado Gomez <guigom@riseup.net>
Wed, 22 Feb 2023 10:20:55 +0000 (11:20 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 15 Mar 2023 21:28:59 +0000 (22:28 +0100)
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>
py/setup.py

index 72fc8fd98b2691609d503a0fa1469688bf566b20..8ad73e7b58e5993fb5b61cddaf81d819edfed8d5 100755 (executable)
@@ -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',