]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
python: drop uses of pkg_resources
authorJohn Snow <jsnow@redhat.com>
Wed, 11 Feb 2026 19:58:04 +0000 (14:58 -0500)
committerThomas Huth <thuth@redhat.com>
Thu, 12 Feb 2026 11:34:00 +0000 (12:34 +0100)
pkg_resources has been fully dropped from modern pip/setuptools
distributions and we should phase out its use. This patch is enough to,
by itself, repair most GitLab CI tests upstream; with the exception of
tox tests which are still making use of avocado - which will be dropped
in a separate series to restore functionality there.

Signed-off-by: John Snow <jsnow@redhat.com>
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Message-ID: <20260211195804.135144-3-jsnow@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
python/setup.py

index c5bc45919a4d8988640a5c80cc71fe53b9dce609..789fa39b0ff8af694671c5c296b932c0c47bd3ef 100755 (executable)
@@ -7,7 +7,6 @@ Copyright (c) 2020-2021 John Snow for Red Hat, Inc.
 import setuptools
 from setuptools.command import bdist_egg
 import sys
-import pkg_resources
 
 
 class bdist_egg_guard(bdist_egg.bdist_egg):
@@ -30,9 +29,6 @@ def main():
     QEMU tooling installer
     """
 
-    # https://medium.com/@daveshawley/safely-using-setup-cfg-for-metadata-1babbe54c108
-    pkg_resources.require('setuptools>=39.2')
-
     setuptools.setup(cmdclass={'bdist_egg': bdist_egg_guard})