- Try to use system packages rather than the vendored variants
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=182
This commit is contained in:
parent
274c3cbad5
commit
47c8c7ab20
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 16 13:58:35 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Try to use system packages rather than the vendored variants
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Oct 16 11:55:57 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
Wed Oct 16 11:55:57 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@ Patch0: sort-for-reproducibility.patch
|
|||||||
BuildRequires: %{python_module appdirs}
|
BuildRequires: %{python_module appdirs}
|
||||||
BuildRequires: %{python_module ordered-set}
|
BuildRequires: %{python_module ordered-set}
|
||||||
BuildRequires: %{python_module packaging}
|
BuildRequires: %{python_module packaging}
|
||||||
|
BuildRequires: %{python_module pyparsing >= 2.0.2}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: %{python_module xml}
|
BuildRequires: %{python_module xml}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -59,17 +60,12 @@ BuildRequires: %{python_module Paver}
|
|||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module mock}
|
BuildRequires: %{python_module mock}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pyparsing >= 2.0.2}
|
|
||||||
BuildRequires: %{python_module pytest-fixture-config}
|
BuildRequires: %{python_module pytest-fixture-config}
|
||||||
BuildRequires: %{python_module pytest-virtualenv}
|
BuildRequires: %{python_module pytest-virtualenv}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools >= %{version}}
|
BuildRequires: %{python_module setuptools >= %{version}}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: python-futures
|
BuildRequires: python-futures
|
||||||
%else
|
|
||||||
#!BuildIgnore: python-pyparsing
|
|
||||||
#!BuildIgnore: python2-pyparsing
|
|
||||||
#!BuildIgnore: python3-pyparsing
|
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} || 0%{?fedora_version} >= 24
|
%if 0%{?suse_version} || 0%{?fedora_version} >= 24
|
||||||
Recommends: ca-certificates-mozilla
|
Recommends: ca-certificates-mozilla
|
||||||
@ -101,6 +97,21 @@ 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
|
||||||
|
|
||||||
|
# replace the bundled stuff
|
||||||
|
find ./ -type f -name \*.py -exec sed -i \
|
||||||
|
-e 's:from setuptools\.extern\.:from :g' \
|
||||||
|
-e 's:from pkg_resources\.extern\.:from :g' \
|
||||||
|
-e 's:pkg_resources\.extern\.::g' \
|
||||||
|
-e 's:setuptools\.extern\.::g' \
|
||||||
|
{} \;
|
||||||
|
find ./ -type f -name \*.py -exec sed -i \
|
||||||
|
-e 's:from setuptools\.extern ::g' \
|
||||||
|
-e 's:from pkg_resources\.extern ::g' \
|
||||||
|
{} \;
|
||||||
|
find ./ -type f -name \*.py -exec sed -i \
|
||||||
|
-e 's:from .extern ::g' \
|
||||||
|
{} \;
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user