- Make wheel a separate build run to avoid the setuptools/wheel build
cycle. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=202
This commit is contained in:
parent
cd821b8dc3
commit
d736a7a77c
@ -1,3 +1,4 @@
|
|||||||
<multibuild>
|
<multibuild>
|
||||||
<package>test</package>
|
<package>test</package>
|
||||||
|
<package>wheel</package>
|
||||||
</multibuild>
|
</multibuild>
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 12 16:09:08 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Make wheel a separate build run to avoid the setuptools/wheel build
|
||||||
|
cycle.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 10 09:21:02 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
Tue Nov 10 09:21:02 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -24,10 +24,15 @@
|
|||||||
%bcond_without test
|
%bcond_without test
|
||||||
%bcond_with wheel
|
%bcond_with wheel
|
||||||
%else
|
%else
|
||||||
|
%if "%{flavor}" == "wheel"
|
||||||
|
%define psuffix -wheel
|
||||||
|
%bcond_without wheel
|
||||||
|
%else
|
||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%bcond_without wheel
|
%bcond_without wheel
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%bcond_without python2
|
%bcond_without python2
|
||||||
Name: python-setuptools%{psuffix}
|
Name: python-setuptools%{psuffix}
|
||||||
Version: 44.1.1
|
Version: 44.1.1
|
||||||
@ -137,21 +142,22 @@ find ./ -type f -name \*.py -exec sed -i \
|
|||||||
{} \;
|
{} \;
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if ! %{with wheel}
|
||||||
%python_build
|
%python_build
|
||||||
%if %{with wheel}
|
%else
|
||||||
%python_exec setup.py bdist_wheel --universal
|
%python_exec setup.py bdist_wheel --universal
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if !%{with test}
|
%if !%{with test} && !%{with wheel}
|
||||||
%python_install
|
%python_install
|
||||||
%prepare_alternative easy_install
|
%prepare_alternative easy_install
|
||||||
|
|
||||||
%if %{with wheel}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%python_expand install -D -m 0644 -t %{buildroot}%{$python_sitelib}/../wheels dist/*.whl
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%if %{with wheel}
|
||||||
|
%python_expand install -D -m 0644 -t %{buildroot}%{$python_sitelib}/../wheels dist/*.whl
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -164,7 +170,7 @@ export PYTHONPATH=$(pwd)
|
|||||||
%pytest -k 'not (test_clean_env_install or test_pip_upgrade_from_source or test_test_command_install_requirements or test_no_missing_dependencies)'
|
%pytest -k 'not (test_clean_env_install or test_pip_upgrade_from_source or test_test_command_install_requirements or test_no_missing_dependencies)'
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{with test}
|
%if !%{with test} && !%{with wheel}
|
||||||
%post
|
%post
|
||||||
%python_install_alternative easy_install
|
%python_install_alternative easy_install
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user