[PATCH 08/12] python: remove distutils workarounds
John Snow <[email protected]>
| Newsgroups | org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
These are no longer necessary now that we are using Python3.12+. Signed-off-by: John Snow <[email protected]> --- python/tests/linters.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/python/tests/linters.py b/python/tests/linters.py index 82b88aebb20..dd89fb00ba8 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/", -- 2.55.0