]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
python3-pip: drop unused Windows distlib launcher templates
authorKrupal Ka Patel <krkapate@cisco.com>
Mon, 9 Mar 2026 05:18:26 +0000 (22:18 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Mar 2026 11:08:08 +0000 (11:08 +0000)
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 <krkapate@cisco.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3-pip_26.0.1.bb

index af0084c43a973c5b5d70be8488eda3707d86f97d..28af8f7ec782cdfd260486f6b381c0292abe7dfa 100644 (file)
@@ -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 \