From 7658c36da0ecd6279a654fd27b75074cb616a54e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Tue, 26 Nov 2024 17:29:22 +0100 Subject: [PATCH] Install the python lifecycle data information in the python containers --- src/bci_build/os_version.py | 2 +- src/bci_build/package/python.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bci_build/os_version.py b/src/bci_build/os_version.py index 1d88d9442..907983b5e 100644 --- a/src/bci_build/os_version.py +++ b/src/bci_build/os_version.py @@ -78,7 +78,7 @@ def deployment_branch_name(self) -> str: @property def lifecycle_data_pkg(self) -> list[str]: - if self.value not in (OsVersion.SLE16_0.value, OsVersion.TUMBLEWEED.value): + if self.is_sle15: return ["lifecycle-data-sle-module-development-tools"] return [] diff --git a/src/bci_build/package/python.py b/src/bci_build/package/python.py index 83171e21f..d7cb3f8cd 100644 --- a/src/bci_build/package/python.py +++ b/src/bci_build/package/python.py @@ -72,6 +72,7 @@ def _get_python_kwargs(py3_ver: _PYTHON_VERSIONS, os_version: OsVersion): + os_version.common_devel_packages + ([f"{py3}-wheel"] if has_wheel else []) + ([f"{py3}-pipx"] if has_pipx else []) + + (["lifecycle-data-sle-module-python3"] if os_version.is_sle15 else []) + os_version.lifecycle_data_pkg, "replacements_via_service": [ Replacement(