[projects/template-specs] More examples

arekm arekm at pld-linux.org
Sun May 4 12:56:53 CEST 2025


commit 02668f70bb03b5287ad0cc65e17bc4a628f0a034
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun May 4 12:02:26 2025 +0200

    More examples

 python3-ext.spec | 4 ++++
 python3.spec     | 4 ++++
 2 files changed, 8 insertions(+)
---
diff --git a/python3-ext.spec b/python3-ext.spec
index b57cee1..4768a1d 100644
--- a/python3-ext.spec
+++ b/python3-ext.spec
@@ -93,6 +93,10 @@ PYTEST_PLUGINS= \
 %endif
 
 %if %{with doc}
+# if pyproject.toml
+%{__python3} -m zipfile -e build-3/*.whl build-3-doc
+PYTHONPATH=$(pwd)/build-3-doc \
+# common setup.py/pyproject
 %{__make} -C docs html \
 	SPHINXBUILD=sphinx-build-3
 rm -rf docs/_build/html/_sources
diff --git a/python3.spec b/python3.spec
index 5b6b828..42d77c0 100644
--- a/python3.spec
+++ b/python3.spec
@@ -95,6 +95,10 @@ PYTEST_PLUGINS= \
 %endif
 
 %if %{with doc}
+# if pyproject.toml
+%{__python3} -m zipfile -e build-3/*.whl build-3-doc
+PYTHONPATH=$(pwd)/build-3-doc \
+# common setup.py/pyproject
 %{__make} -C docs html \
 	SPHINXBUILD=sphinx-build-3
 rm -rf docs/_build/html/_sources
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/02668f70bb03b5287ad0cc65e17bc4a628f0a034



More information about the pld-cvs-commit mailing list