Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM: Avoid needless runtime requirement on python3-setuptools #3344

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

hroncok
Copy link
Contributor

@hroncok hroncok commented Oct 12, 2023

setuptools is not used on runtime at all.

pkg_resources (part of the python3-setuptools package) is used in 2 places:

  • console_scripts entry points (/usr/bin/*) on Python < 3.8
  • subscription_manager.utils:get_client_versions
    • conditional on subscription_manager.version.pkg_version presence
    • hence never imported from the RPM package

Hence, this is really only needed on RHEL 8 or lower, but the specfile conditionals do not seem to support RHEL 7 at all.

No idea about SUSE but if they have at least Python 3.8 they should be good as well.

This is from https://src.fedoraproject.org/rpms/subscription-manager/pull-request/36

setuptools is not used on runtime at all.

pkg_resources (part of the python3-setuptools package) is used in 2 places:

 - console_scripts entry points (/usr/bin/*) on Python < 3.8
 - subscription_manager.utils:get_client_versions
   - conditional on subscription_manager.version.pkg_version presence
   - hence never imported from the RPM package

Hence, this is really only needed on RHEL 8 or lower,
but the specfile conditionals do not seem to support RHEL 7 at all.

No idea about SUSE but if they have at least Python 3.8
they should be good as well.

This is from https://src.fedoraproject.org/rpms/subscription-manager/pull-request/36
Copy link
Contributor

@ptoscano ptoscano left a comment

Choose a reason for hiding this comment

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

Thanks!

@ptoscano ptoscano merged commit 75eb078 into candlepin:main Oct 12, 2023
10 of 11 checks passed
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.

2 participants