Skip to contentSkip to conversation

py: replace distutils with setuptools

PATCH New Jose M. Guisado Gomez 1 participant 1 message Feb 22, 2023 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.
"""

---
 py/setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
py/setup.py +1 -1
index 72fc8fd9..8ad73e7b 100755
@@ -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',
Signature · 1 line
2.39.2