forked from pool/python-setuptools
Accepting request 866133 from devel:languages:python
- We cannot remove vendored packages when generating setuptools wheel (bsc#1177127). OBS-URL: https://build.opensuse.org/request/show/866133 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-setuptools?expand=0&rev=64
This commit is contained in:
@@ -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).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 8 02:15:26 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
Tue Dec 8 02:15:26 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-setuptools
|
# spec file for package python-setuptools
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -118,6 +118,7 @@ chmod -x README.rst
|
|||||||
# replace with nothing
|
# replace with nothing
|
||||||
sed -r -i '1s@^#!/.*$@@' setuptools/command/easy_install.py
|
sed -r -i '1s@^#!/.*$@@' setuptools/command/easy_install.py
|
||||||
|
|
||||||
|
%if ! %{with wheel}
|
||||||
# replace the bundled stuff
|
# replace the bundled stuff
|
||||||
find ./ -type f -name \*.py -exec sed -i \
|
find ./ -type f -name \*.py -exec sed -i \
|
||||||
-e 's:from setuptools\.extern\.:from :g' \
|
-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 \
|
find ./ -type f -name \*.py -exec sed -i \
|
||||||
-e 's:from .extern ::g' \
|
-e 's:from .extern ::g' \
|
||||||
{} \;
|
{} \;
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if ! %{with wheel}
|
%if ! %{with wheel}
|
||||||
|
Reference in New Issue
Block a user