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
|
||||
%bcond_without tests
|
||||
|
||||
%global python2_wheelname %{pypi_name}-%{version}-py2.py3-none-any.whl
|
||||
%global python3_wheelname %python2_wheelname
|
||||
%global python_wheelname %{pypi_name}-%{version}-py2.py3-none-any.whl
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 19.0
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Core utilities for Python packages
|
||||
|
||||
License: BSD or ASL 2.0
|
||||
@ -64,8 +63,6 @@ BuildRequires: python%{python3_pkgversion}-sphinx
|
||||
%endif
|
||||
|
||||
%if 0%{?build_wheel}
|
||||
BuildRequires: python2-pip
|
||||
BuildRequires: python2-wheel
|
||||
%if 0%{?with_python3}
|
||||
BuildRequires: python%{python3_pkgversion}-pip
|
||||
BuildRequires: python%{python3_pkgversion}-wheel
|
||||
@ -119,11 +116,7 @@ Documentation for python-packaging
|
||||
rm -rf %{pypi_name}.egg-info
|
||||
|
||||
%build
|
||||
%if 0%{?build_wheel}
|
||||
%py2_build_wheel
|
||||
%else
|
||||
%py2_build
|
||||
%endif
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%if 0%{?build_wheel}
|
||||
@ -148,15 +141,11 @@ rm -rf html/_static/fonts/
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if 0%{?build_wheel}
|
||||
%py2_install_wheel %{python2_wheelname}
|
||||
%else
|
||||
%py2_install
|
||||
%endif
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%if 0%{?build_wheel}
|
||||
%py3_install_wheel %{python3_wheelname}
|
||||
%py3_install_wheel %{python_wheelname}
|
||||
%else
|
||||
%py3_install
|
||||
%endif
|
||||
@ -194,6 +183,9 @@ rm -rf html/_static/fonts/
|
||||
%endif
|
||||
|
||||
%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
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user