Sync from SUSE:SLFO:Main python313 revision d0dfd4215089a37af0ae2e0812cb62c5

This commit is contained in:
2025-03-21 10:53:19 +01:00
parent d4d0782687
commit 1a9b96ab31
2 changed files with 31 additions and 15 deletions

View File

@@ -54,25 +54,12 @@
%bcond_with GIL
%endif
%if 0%{?do_profiling}
%if 0%{?do_profiling} && !0%{?want_reproducible_builds}
%bcond_without profileopt
%else
%bcond_with profileopt
%endif
# No experimental_jit in SLES, there's no clang >=18
%if 0%{?suse_version} <= 1600
%bcond_with experimental_jit
%else
# Currently supported architectures
# https://peps.python.org/pep-0744/#support
%ifarch x86_64 %{x86_64} aarch64
%bcond_without experimental_jit
%else
%bcond_with experimental_jit
%endif
%endif
# Only for Tumbleweed
# https://en.opensuse.org/openSUSE:Python:Externally_managed
%if 0%{?suse_version} > 1600
@@ -93,6 +80,24 @@
%define primary_interpreter 0
%endif
# No experimental_jit in SLES, there's no clang >=18
%if 0%{?suse_version} <= 1600
%bcond_with experimental_jit
# Disable experimental_jit for primary python.
# llvm is not part of ring0 and experimental_jit requires clang >= 18
%elif !%{primary_interpreter}
# Currently supported architectures
# https://peps.python.org/pep-0744/#support
%ifarch x86_64 %{x86_64} aarch64
%bcond_without experimental_jit
%else
%bcond_with experimental_jit
%endif
%else
%bcond_with experimental_jit
%endif
# %%if 0%%{?sle_version} && 0%%{?suse_version} < 1550
# Obsoleting previous "latest" Python versions
# Next versions will get more lines like for older versions