Make it able to boostrap
This commit is contained in:
parent
75f037510f
commit
993ddb6428
@ -5,6 +5,9 @@
|
|||||||
%global with_python3 1
|
%global with_python3 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Use this when bootstraping python3-sphinx
|
||||||
|
%bcond_with bootstrap
|
||||||
|
|
||||||
%global python2_wheelname %{pypi_name}-%{version}-py2.py3-none-any.whl
|
%global python2_wheelname %{pypi_name}-%{version}-py2.py3-none-any.whl
|
||||||
%global python3_wheelname %python2_wheelname
|
%global python3_wheelname %python2_wheelname
|
||||||
|
|
||||||
@ -43,7 +46,12 @@ BuildRequires: python%{python3_pkgversion}-pytest
|
|||||||
BuildRequires: python%{python3_pkgversion}-pretend
|
BuildRequires: python%{python3_pkgversion}-pretend
|
||||||
BuildRequires: python%{python3_pkgversion}-pyparsing
|
BuildRequires: python%{python3_pkgversion}-pyparsing
|
||||||
BuildRequires: python%{python3_pkgversion}-six
|
BuildRequires: python%{python3_pkgversion}-six
|
||||||
|
%if %{without bootstrap}
|
||||||
BuildRequires: python%{python3_pkgversion}-sphinx
|
BuildRequires: python%{python3_pkgversion}-sphinx
|
||||||
|
%else
|
||||||
|
# When bootstrapping, we'll use Python 2 sphinx
|
||||||
|
BuildRequires: python2-sphinx
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?build_wheel}
|
%if 0%{?build_wheel}
|
||||||
@ -113,7 +121,7 @@ rm -rf %{pypi_name}.egg-info
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
# generate html docs
|
# generate html docs
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3} && %{without bootstrap}
|
||||||
sphinx-build-3 docs html
|
sphinx-build-3 docs html
|
||||||
%else
|
%else
|
||||||
sphinx-build docs html
|
sphinx-build docs html
|
||||||
|
Loading…
Reference in New Issue
Block a user