[packages/python-sympy] - fixed doc build without sympy installed

qboosh qboosh at pld-linux.org
Sun Sep 15 20:29:53 CEST 2019


commit 558a01dcb3bbc9ca12992b216963390a933d2362
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Sep 15 20:32:51 2019 +0200

    - fixed doc build without sympy installed

 python-sympy.spec | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/python-sympy.spec b/python-sympy.spec
index 1ac9125..902ca99 100644
--- a/python-sympy.spec
+++ b/python-sympy.spec
@@ -42,6 +42,7 @@ BuildRequires:	python3-numpy
 %if %{with doc}
 BuildRequires:	pydoc3
 BuildRequires:	python3-matplotlib
+BuildRequires:	python3-mpmath >= 0.19
 BuildRequires:	sphinx-pdg-3
 BuildRequires:	texlive-format-pdflatex
 BuildRequires:	texlive-latex
@@ -112,7 +113,9 @@ Dokumentacja do SymPy w formacie HTML.
 %endif
 
 %if %{with doc}
+pydir=$(pwd)/build-3/lib
 cd doc
+PYTHONPATH=$pydir \
 %{__make} html \
 	SPHINXBUILD=sphinx-build-3
 %{__make} cheatsheet
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sympy.git/commitdiff/558a01dcb3bbc9ca12992b216963390a933d2362



More information about the pld-cvs-commit mailing list