config: Define python313 as primary python

This commit is contained in:
2025-03-03 07:49:06 +01:00
parent 5546403d0b
commit 6413229dde

View File

@@ -3732,7 +3732,7 @@ Prefer: %{rb_default_ruby_suffix}-rubygem-railties
# PYTHON STUFF
%define primary_python python311
%define primary_python python313
%define skip_python2 1
%define _without_python2 1
@@ -3740,7 +3740,7 @@ Macros:
## PYTHON MACROS BEGIN
# order of %pythons is important: The last flavor overrides any operation on conflicting files and definitions during expansions,
# making it the "default" in many cases --> keep the primary python3 provider at the end.
%pythons %{?!skip_python3:%{?!skip_python311:python311}}
%pythons %{?!skip_python3:%{?!skip_python311:python311} %{?!skip_python313:python313}}
%add_python() %{expand:%%define pythons %1 %pythons}
%_without_python2 1
@@ -3754,7 +3754,7 @@ Macros:
%python_module_iter_STOP %global python %%%%python
%python_module() %{?!python_module_lua:%{expand:%%define args %{**}} %{expand:%%{python_module_iter -a %{pythons} STOP}}}%{?python_module_lua:%python_module_lua %{**}}
# gh#openSUSE/python-rpm-macros#127 ... define our current primary Python interpreter
%primary_python python311
%primary_python python313
## PYTHON MACROS END
:Macros