- 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
This commit is contained in:
parent
b0014cbe2f
commit
0d4abacab1
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 22 19:05:02 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- We cannot remove vendored packages when generating setuptools
|
||||
wheel (bsc#1177127).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 20 07:03:58 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user