Bug 1774260
Summary: | [RHEL8] python-rpm-generators is not generating python dependencies | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Troy Dawson <tdawson> |
Component: | python-rpm-generators | Assignee: | Python Maintainers <python-maint> |
Status: | CLOSED WONTFIX | QA Contact: | RHEL CS Apps Subsystem QE <rhel-cs-apps-subsystem-qe> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.1 | CC: | kdreyer, mhroncok, pviktori, torsava |
Target Milestone: | rc | ||
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-12-17 12:19:42 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1757463 |
Description
Troy Dawson
2019-11-19 22:21:07 UTC
This works properly on Fedora, which is at python-rpm-generator version 9. I haven't tested the various versions between 5 and 9 to see which has the change that fixes the problem. Did some tests, and this works in python3-rpm-generators-7 IIRC this feature is turned off and remains an opt-in. See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_automatically_generated_dependencies and let me know if the opt-in is working. I don't recall whether this was a deliberate choice or just the fact that the dependency generator was disabled by default in Fedora 28. See the relevant Fedora commit: https://src.fedoraproject.org/rpms/python-rpm-generators/c/e745e149a6c877ae9b7fc26027d35fa6aeaaf902?branch=master See the relevant Fedora 30 change: https://fedoraproject.org/wiki/Changes/EnablingPythonGeneratorsByDefault Is there any way we can turn this on for RHEL 8 at this point? If not, is there any way we can turn this on for EPEL 8? > Is there any way we can turn this on for RHEL 8 at this point? Use %?python_enable_dependency_generator -- that's documented (at least in [release notes]); it's a bug if it doesn't work. If you mean globally, then no. RHEL8 is stable, we're quite unlikely to change how it's build. Why do you need it? [release notes]: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/configuring_basic_system_settings/index#spec-file-description-for-a-python-package_packaging-of-python-3-rpms The reason my team and I need this is that we are trying to bring many Fedora packages to EPEL 8. When we cannot copy the packages directly from Fedora 30+ to EPEL 8, it is more packaging work for my team. I can understand that RHEL8 is stable and the change could potentially could break and/or change the users experience. For EPEL8 (and possibly EPEL7) we are going to try enabling it by default. At least for EPEL users, this should solve the problem. The EPEL 7 case might be lost. Automatic provides need to be activated first and for a lot of the Python 2 packages, this means doing it in RHEL 7. For Python 3 however, possible, as setuptools and pip have the python3.6dist(...) provides. epel-rpm-macros-8 has been updated and deployed, so that EPEL 8 python builds find the python dependencies, just like Fedora. Since this bug was specifically for RHEL 8, I think this can be closed. If others want to discuss having the same features in RHEL7 and EPEL7, perhaps it would be best done on it's own bug. |