Commit 37826ad1db for qemu.org
commit 37826ad1db4d57a5240dfec551da348979302188
Author: John Snow <jsnow@redhat.com>
Date: Tue Aug 25 17:58:47 2026 -0400
python: remove distutils workarounds
These are no longer necessary now that we are using Python3.12+.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20260825215851.1780608-13-jsnow@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
diff --git a/python/tests/linters.py b/python/tests/linters.py
index 82b88aebb2..dd89fb00ba 100644
--- a/python/tests/linters.py
+++ b/python/tests/linters.py
@@ -83,23 +83,13 @@ def test_mypy_iotests(self):
cwd="../tests/qemu-iotests/",
)
- # Setuptools v60 introduced the SETUPTOOLS_USE_DISTUTILS=stdlib
- # workaround; stdlib distutils was fully removed in Python
- # 3.12+. Once we are on >=3.12+ exclusively, this workaround can be
- # dropped safely. Until then, it is needed for some versions on
- # Fedora/Debian distributions which relied upon distro-patched
- # setuptools present in CPython, but not within setuptools itself.
-
def test_pylint_pkg(self):
- os.environ["SETUPTOOLS_USE_DISTUTILS"] = "stdlib"
check_call([sys.executable, "-m", "pylint", "qemu/"])
def test_pylint_scripts(self):
- os.environ["SETUPTOOLS_USE_DISTUTILS"] = "stdlib"
check_call([sys.executable, "-m", "pylint", "scripts/"])
def test_pylint_qapi(self):
- os.environ["SETUPTOOLS_USE_DISTUTILS"] = "stdlib"
check_call(
[
sys.executable,
@@ -113,7 +103,6 @@ def test_pylint_qapi(self):
)
def test_pylint_iotests(self):
- os.environ["SETUPTOOLS_USE_DISTUTILS"] = "stdlib"
check_call(
[sys.executable, "-m", "linters", "--pylint"],
cwd="../tests/qemu-iotests/",