Skip to content

Commit 67fdfe0

Browse files
committed
add sles16 python313 support
1 parent cffc077 commit 67fdfe0

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

roles/sap_software_download/vars/Suse.yml renamed to roles/sap_software_download/vars/SLES_15.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,21 @@
33

44
# Variables specific to following versions:
55
# - SUSE Linux Enterprise Server 15
6-
# - SUSE Linux Enterprise Server 16
76

87
# NOTE: SLES 15 SP5 introduced Python 3.11.
98

109
# Set which Python version will be used on destination node.
1110
# This is python executable name, which can differ from python package name.
1211
__sap_software_download_python_interpreter: >-
13-
{%- if ansible_distribution_major_version == '15' and ansible_distribution_version.split('.')[1] | int < 5 -%}
12+
{%- if ansible_distribution_version.split('.')[1] | int < 5 -%}
1413
python3
1514
{%- else -%}
1615
python3.11
1716
{%- endif -%}
1817
1918
# Set which Python package will be installed on destination node.
2019
__sap_software_download_python_package: >-
21-
{%- if ansible_distribution_major_version == '15' and ansible_distribution_version.split('.')[1] | int < 5 -%}
20+
{%- if ansible_distribution_version.split('.')[1] | int < 5 -%}
2221
python3
2322
{%- else -%}
2423
python311
@@ -27,7 +26,7 @@ __sap_software_download_python_package: >-
2726
# The list of required Python Modules in packages
2827
# This is required in order to avoid externally-managed-environment error.
2928
__sap_software_download_python_module_packages: >-
30-
{%- if ansible_distribution_major_version == '15' and ansible_distribution_version.split('.')[1] | int < 5 -%}
29+
{%- if ansible_distribution_version.split('.')[1] | int < 5 -%}
3130
[
3231
"python3-wheel",
3332
"python3-urllib3",
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
---
3+
4+
# Variables specific to following versions:
5+
# - SUSE Linux Enterprise Server 16
6+
7+
# Set which Python version will be used on destination node.
8+
# This is python executable name, which can differ from python package name.
9+
__sap_software_download_python_interpreter: python3.13
10+
11+
# Set which Python package will be installed on destination node.
12+
__sap_software_download_python_package: python313
13+
14+
# The list of required Python Modules in packages
15+
# This is required in order to avoid externally-managed-environment error.
16+
__sap_software_download_python_module_packages:
17+
- "python313-wheel"
18+
- "python313-urllib3"
19+
- "python313-requests"
20+
- "python313-beautifulsoup4"
21+
- "python313-lxml"

0 commit comments

Comments
 (0)