Accepting request 731210 from home:jayvdb:py3only

Allow building only python and fix Leap/SLE 15

OBS-URL: https://build.opensuse.org/request/show/731210
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=177
This commit is contained in:
Tomáš Chvátal 2019-09-16 09:18:31 +00:00 committed by Git OBS Bridge
parent 0577003532
commit b1e92fb56f
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Sep 14 02:08:41 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Define LANG in %check to fix openSUSE/SLE 15 testsuite
- Only require python-futures for building if building flavour
python2
-------------------------------------------------------------------
Wed Aug 21 12:40:01 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -63,7 +63,9 @@ BuildRequires: %{python_module pytest-virtualenv}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools >= %{version}}
BuildRequires: %{python_module wheel}
%if 0%{?have_python2} && ! 0%{?skip_python2}
BuildRequires: python-futures
%endif
%else
#!BuildIgnore: python-pyparsing
#!BuildIgnore: python2-pyparsing
@ -110,6 +112,7 @@ sed -r -i '1s@^#!/.*$@@' setuptools/command/easy_install.py
%check
%if %{with test}
export LANG=en_US.UTF-8
%pytest
%endif