| Message ID | 20260309051933.46422-1-krkapate@cisco.com |
|---|---|
| State | Under Review |
| Headers | show |
| Series | python3-setuptools: drop Windows launcher executables on non-mingw builds | 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 533d8ce3d4..833d610be5 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} = "\