Skip to content

sap_software_download: Install required package on RHEL 10 - #79

Merged
berndfinger merged 1 commit into
sap-linuxlab:devfrom
berndfinger:install-required-package-for-rhel-10-02
Jul 27, 2026
Merged

sap_software_download: Install required package on RHEL 10#79
berndfinger merged 1 commit into
sap-linuxlab:devfrom
berndfinger:install-required-package-for-rhel-10-02

Conversation

@berndfinger

Copy link
Copy Markdown
Member

Fixes issue #77.

This is necessary because the Python packaging library is no longer bundled in python3-setuptools and python3-pip in the default Python (3.12) in RHEL 10.

Tested on RHEL 9.8, 10.0 and 10.2 managed nodes, with and without sap_software_download_use_venv: true.

Fixes issue sap-linuxlab#77.

This is necessary because the Python packaging library is no longer bundled in python3-setuptools and python3-pip
in the default Python (3.12) in RHEL 10.

Signed-off-by: Bernd Finger <bfinger@redhat.com>

@marcelmamula marcelmamula left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as changes requested in #78 (review) were completed.

@ja9fuchs ja9fuchs left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rhmk rhmk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix solves the problem, so LGTM.
From my point of view, it would be more elegant to change the variable with the Python package to a list containing the package, the pip package, and the additional packages. But I am also fine with this solution.

- name: SAP Software Download - Prepare - Install Python and Python package manager pip
  ansible.builtin.package:
    name:  "{{ __sap_software_download_fact_python_packages }}"
    state: present

And then change all the header files for each OS (more complex, but more elegant code) It would avoid a when branch

@berndfinger
berndfinger merged commit d76b69f into sap-linuxlab:dev Jul 27, 2026
8 checks passed
@berndfinger
berndfinger deleted the install-required-package-for-rhel-10-02 branch July 27, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants