[packages/python-pip] - docs can be build with python2 or 3
arekm
arekm at pld-linux.org
Thu Nov 22 22:07:28 CET 2018
commit 8d3a9b65c6604801d2da5bbcd47c7fb990aa047d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 22 22:07:21 2018 +0100
- docs can be build with python2 or 3
python-pip.spec | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/python-pip.spec b/python-pip.spec
index 4f1d711..064fac4 100644
--- a/python-pip.spec
+++ b/python-pip.spec
@@ -140,16 +140,16 @@ mv python-docs-theme-2018.2 python-docs-theme
%py_build %{?with_tests:test}
%endif
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
%if %{with apidocs}
cd docs/html
-export PYTHONPATH=$(pwd)/../../build-2/lib; sphinx-build -b html . _build/html
+export PYTHONPATH=$(pwd)/../../build-2/lib:$(pwd)/../../build-3/lib; sphinx-build -b html . _build/html
cd ../..
%endif
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
-
%install
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pip.git/commitdiff/8d3a9b65c6604801d2da5bbcd47c7fb990aa047d
More information about the pld-cvs-commit
mailing list