From: Krupal Ka Patel Date: Mon, 9 Mar 2026 05:18:26 +0000 (-0700) Subject: python3-pip: drop unused Windows distlib launcher templates X-Git-Tag: uninative-5.1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90d208fbb06b6e6b5aaddb0048fd6e2e1d46c8bd;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git python3-pip: drop unused Windows distlib launcher templates pip vendors distlib which ships Windows launcher template binaries (*.exe) under pip/_vendor/distlib. These files are only used on Windows systems but are installed and packaged for target, native, and nativesdk builds. Remove the distlib *.exe templates when not building for a mingw (mingw32/mingw64) host to avoid shipping unused Windows binaries and reduce package noise. Signed-off-by: Krupal Ka Patel Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/python/python3-pip_26.0.1.bb b/meta/recipes-devtools/python/python3-pip_26.0.1.bb index af0084c43a..28af8f7ec7 100644 --- a/meta/recipes-devtools/python/python3-pip_26.0.1.bb +++ b/meta/recipes-devtools/python/python3-pip_26.0.1.bb @@ -28,6 +28,15 @@ SRC_URI += "file://no_shebang_mangling.patch" SRC_URI[sha256sum] = "c4037d8a277c89b320abe636d59f91e6d0922d08a05b60e85e53b296613346d8" +do_install:append(){ + # pip vendors distlib which ships Windows launcher templates (*.exe). + # Keep them only when building for a Windows (mingw) host. + case "${HOST_OS}" in + mingw32|mingw64) ;; + *) rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/pip/_vendor/distlib/*.exe ;; + esac +} + RDEPENDS:${PN} = "\ python3-compile \ python3-html \