[packages/python-texext] - disable python3 here

qboosh qboosh at pld-linux.org
Tue Apr 21 22:32:13 CEST 2026


commit 969c717787f906c1be05f8f8b4f3879c4ca2686c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Apr 21 22:32:49 2026 +0200

    - disable python3 here

 python-texext.spec | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/python-texext.spec b/python-texext.spec
index 200c7bd..4dc4389 100644
--- a/python-texext.spec
+++ b/python-texext.spec
@@ -2,11 +2,12 @@
 # Conditional build:
 %bcond_without	tests	# unit tests
 %bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
+%bcond_with	python3 # CPython 3.x module (built from python3-texext.spec)
 
 Summary:	Sphinx extensions for working with LaTeX math
 Summary(pl.UTF-8):	Rozszerzenia Sphinksa do pracy z LaTeXowymi wzorami matematycznymi
 Name:		python-texext
+# keep 0.6.5 here for python2 support
 Version:	0.6.5
 Release:	6
 License:	BSD
@@ -77,7 +78,8 @@ matematycznymi.
 %py_build
 
 %if %{with tests}
-PYTHONPATH=$(pwd)/build-2/lib \
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd) \
 %{__python} -m pytest texext/tests
 %endif
 %endif
@@ -86,7 +88,8 @@ PYTHONPATH=$(pwd)/build-2/lib \
 %py3_build
 
 %if %{with tests}
-PYTHONPATH=$(pwd)/build-2/lib \
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd) \
 %{__python3} -m pytest texext/tests
 %endif
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-texext.git/commitdiff/969c717787f906c1be05f8f8b4f3879c4ca2686c



More information about the pld-cvs-commit mailing list