From db43d93a8090a915fbfb437c9f4781635736e385dabafc45d9b02144bea20bf2 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 9 Apr 2024 19:38:17 +0000 Subject: [PATCH] - (bsc#1222509) Remove *.exe and *.dll files from bundled wheels. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python39?expand=0&rev=180 --- python39.changes | 5 +++++ python39.spec | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/python39.changes b/python39.changes index 6720133..eea04f2 100644 --- a/python39.changes +++ b/python39.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 9 19:37:17 UTC 2024 - Matej Cepl + +- (bsc#1222509) Remove *.exe and *.dll files from bundled wheels. + ------------------------------------------------------------------- Sun Mar 24 00:43:14 UTC 2024 - Matej Cepl diff --git a/python39.spec b/python39.spec index 786fb25..b25747b 100644 --- a/python39.spec +++ b/python39.spec @@ -190,6 +190,7 @@ BuildRequires: netcfg BuildRequires: openssl-devel BuildRequires: pkgconfig BuildRequires: xz +BuildRequires: zip BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(libffi) @@ -447,6 +448,12 @@ other applications. %patch -P 42 -p1 %patch -P 43 -p1 +# Remove *.exe files from bundled wheels +for ziparch in Lib/ensurepip/_bundled/pip-23.0.1-py3-none-any.whl \ + Lib/ensurepip/_bundled/setuptools-58.1.0-py3-none-any.whl ; do + zip -vd $ziparch '*.exe' '*.dll' +done + # drop Autoconf version requirement sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac