]> git.pld-linux.org Git - packages/python-pip.git/commitdiff
- docs can be build with python2 or 3
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 22 Nov 2018 21:07:21 +0000 (22:07 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 22 Nov 2018 21:07:21 +0000 (22:07 +0100)
python-pip.spec

index 4f1d711e11b3b05a955a7a02527d3ba8ae3d62dd..064fac4b81c5f615f4e63ce6808952c29a3887c9 100644 (file)
@@ -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
 
This page took 0.151894 seconds and 4 git commands to generate.