switch default Python to 3.11
This commit is contained in:
parent
33c95fa9eb
commit
f0b3684216
6
_config
6
_config
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user