Reduce Python 2 build time dependencies
This commit is contained in:
parent
7fe02ad74e
commit
91c8794814
@ -11,12 +11,11 @@
|
|||||||
# Specify --without tests to prevent the dependency loop on python-pytest
|
# Specify --without tests to prevent the dependency loop on python-pytest
|
||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
|
|
||||||
%global python2_wheelname %{pypi_name}-%{version}-py2.py3-none-any.whl
|
%global python_wheelname %{pypi_name}-%{version}-py2.py3-none-any.whl
|
||||||
%global python3_wheelname %python2_wheelname
|
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 19.0
|
Version: 19.0
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Core utilities for Python packages
|
Summary: Core utilities for Python packages
|
||||||
|
|
||||||
License: BSD or ASL 2.0
|
License: BSD or ASL 2.0
|
||||||
@ -64,8 +63,6 @@ BuildRequires: python%{python3_pkgversion}-sphinx
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?build_wheel}
|
%if 0%{?build_wheel}
|
||||||
BuildRequires: python2-pip
|
|
||||||
BuildRequires: python2-wheel
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
BuildRequires: python%{python3_pkgversion}-pip
|
BuildRequires: python%{python3_pkgversion}-pip
|
||||||
BuildRequires: python%{python3_pkgversion}-wheel
|
BuildRequires: python%{python3_pkgversion}-wheel
|
||||||
@ -119,11 +116,7 @@ Documentation for python-packaging
|
|||||||
rm -rf %{pypi_name}.egg-info
|
rm -rf %{pypi_name}.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?build_wheel}
|
|
||||||
%py2_build_wheel
|
|
||||||
%else
|
|
||||||
%py2_build
|
%py2_build
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%if 0%{?build_wheel}
|
%if 0%{?build_wheel}
|
||||||
@ -148,15 +141,11 @@ rm -rf html/_static/fonts/
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if 0%{?build_wheel}
|
|
||||||
%py2_install_wheel %{python2_wheelname}
|
|
||||||
%else
|
|
||||||
%py2_install
|
%py2_install
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%if 0%{?build_wheel}
|
%if 0%{?build_wheel}
|
||||||
%py3_install_wheel %{python3_wheelname}
|
%py3_install_wheel %{python_wheelname}
|
||||||
%else
|
%else
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif
|
%endif
|
||||||
@ -194,6 +183,9 @@ rm -rf html/_static/fonts/
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 02 2019 Miro Hrončok <mhroncok@redhat.com> - 19.0-5
|
||||||
|
- Reduce Python 2 build time dependencies
|
||||||
|
|
||||||
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 19.0-4
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 19.0-4
|
||||||
- Rebuilt for Python 3.8
|
- Rebuilt for Python 3.8
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user