| Message ID | 2462eee5fa3cdc13eacafbb281e8871ee7c3a101.1774047909.git.yoann.congal@smile.fr |
|---|---|
| State | New |
| Headers | show |
| Series | [whinlatter,1/7] inetutils: Fix CVE-2026-32746 | expand |
diff --git a/meta/recipes-devtools/python/python3-setuptools_80.9.0.bb b/meta/recipes-devtools/python/python3-setuptools_80.9.0.bb index 533d8ce3d44..833d610be5b 100644 --- a/meta/recipes-devtools/python/python3-setuptools_80.9.0.bb +++ b/meta/recipes-devtools/python/python3-setuptools_80.9.0.bb @@ -13,6 +13,15 @@ SRC_URI += " \ SRC_URI[sha256sum] = "f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c" +do_install:append() { + # setuptools ships Windows launcher executables (cli*.exe, gui*.exe). + # Keep them only when building for a Windows (mingw) host. + case "${HOST_OS}" in + mingw32|mingw64) ;; + *) rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/setuptools/*.exe ;; + esac +} + DEPENDS += "python3" RDEPENDS:${PN} = "\