From 0d4abacab11505069d0ba094b7167e1eb2fbf91373db55165f1e55d8827da98e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 22 Jan 2021 19:05:46 +0000 Subject: [PATCH] - We cannot remove vendored packages when generating setuptools wheel (bsc#1177127). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=212 --- python-setuptools.changes | 6 ++++++ python-setuptools.spec | 2 ++ 2 files changed, 8 insertions(+) diff --git a/python-setuptools.changes b/python-setuptools.changes index e559af5..16bd944 100644 --- a/python-setuptools.changes +++ b/python-setuptools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jan 22 19:05:02 UTC 2021 - Matej Cepl + +- We cannot remove vendored packages when generating setuptools + wheel (bsc#1177127). + ------------------------------------------------------------------- Wed Jan 20 07:03:58 UTC 2021 - Matej Cepl diff --git a/python-setuptools.spec b/python-setuptools.spec index e478e22..65e8ba4 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -118,6 +118,7 @@ chmod -x README.rst # replace with nothing sed -r -i '1s@^#!/.*$@@' setuptools/command/easy_install.py +%if ! %{with wheel} # replace the bundled stuff find ./ -type f -name \*.py -exec sed -i \ -e 's:from setuptools\.extern\.:from :g' \ @@ -132,6 +133,7 @@ find ./ -type f -name \*.py -exec sed -i \ find ./ -type f -name \*.py -exec sed -i \ -e 's:from .extern ::g' \ {} \; +%endif %build %if ! %{with wheel}