From 4f71f3962a0212b8eed4186ccc133d315247651a Mon Sep 17 00:00:00 2001 From: Seth Foster Date: Tue, 22 Feb 2022 16:50:52 -0500 Subject: [PATCH] recipes-devtools: add python3-setuptools 46.4.0 This overrides the version in openembedded-core to work around https://github.com/pypa/setuptools/issues/3118 , a mysterious problem that meant if you have a version in a specific range installed, you can't install versions outside that range. This version is the lowest-versioned one outside that range, which we do instead of the highest-version one because that one can't be installed with the built in pypi module. --- .../python/python3-setuptools_46.4.0.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 recipes-devtools/python/python3-setuptools_46.4.0.bb diff --git a/recipes-devtools/python/python3-setuptools_46.4.0.bb b/recipes-devtools/python/python3-setuptools_46.4.0.bb new file mode 100644 index 0000000..734f2ab --- /dev/null +++ b/recipes-devtools/python/python3-setuptools_46.4.0.bb @@ -0,0 +1,15 @@ +# Override the version of setuptools in openembedded-core to work around +# https://github.com/pypa/setuptools/issues/3118 . This doesn't use the +# most recent version of setuptools because it in turn isn't quite +# compatible with the way the overrided recipe installs it. + +require recipes-devtools/python/python-setuptools.inc +SRC_URI[md5sum] = "e2c6c3d64b38efe2e81bcd502cf54dcc" +SRC_URI[sha256sum] = "4334fc63121aafb1cc98fd5ae5dd47ea8ad4a38ad638b47af03a686deb14ef5b" +SRC_URI_remove_class-native = " file://0001-conditionally-do-not-fetch-code-by-easy_install.patch" +inherit setuptools3 + + +do_install_append() { + mv ${D}${bindir}/easy_install ${D}${bindir}/easy3_install +}