Merge pull request 'switch default Python to 3.11' (#14) from jsrain/SUSE_ALP_Standard:1.0 into 1.0

Reviewed-on: https://src.suse.de/products/SUSE_ALP_Standard/pulls/14
This commit is contained in:
Marcus Rückert 2023-09-19 12:48:20 +02:00
commit c82c072aad

View File

@ -1587,7 +1587,7 @@ Prefer: %{rb_default_ruby_suffix}-rubygem-yast-rake
# PYTHON STUFF
%define primary_python python310
%define primary_python python311
%define skip_python2 1
%define _without_python2 1
%define skip_python38 1
@ -1597,7 +1597,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_python38:python38} %{?!skip_python39:python39} %{?!skip_python311:python311} %{?!skip_python310:python310}}
%pythons %{?!skip_python3:%{?!skip_python38:python38} %{?!skip_python39:python39} %{?!skip_python310:python310} %{?!skip_python311:python311}}
%add_python() %{expand:%%define pythons %1 %pythons}
%_without_python2 1
@ -1613,7 +1613,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 python310
%primary_python python311
## PYTHON MACROS END
:Macros