Bug 2477013
| Summary: | python3-pkg-resources is missing the required bundled packages | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | python-setuptools80 | Assignee: | Miro Hrončok <mhroncok> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | python-packagers-sig, thrnciar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | python-setuptools80-80.10.2-4.fc45 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-05-13 15:23:14 UTC | Type: | --- |
| 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: | 2461178 | ||
|
Description
Miro Hrončok
2026-05-13 13:36:30 UTC
/usr/lib/python3.14/site-packages/pkg_resources/__init__.py import packaging.markers import packaging.requirements import packaging.specifiers import packaging.utils import packaging.version from jaraco.text import drop_comment, join_continuation, yield_lines from platformdirs import user_cache_dir as _user_cache_dir Those are the only such imports. The path is extedned by sys.path.extend(((vendor_path := os.path.join(os.path.dirname(os.path.dirname(__file__)), 'setuptools', '_vendor')) not in sys.path) * [vendor_path]) This works when python3-setuptools 82 is installed. Or when all 3 depndencies are installed. But if a future version of setuptools drops some of the 3, installing setuptools will no longer work. Solution 1: Add: Requires: python3-jaraco-text Requires: python3-packaging Requires: python3-platformdirs This will likely work, but additional dependencies might not be expected here. Also, they will likely not be checked in %check. Solution 2: Add: Requires: (python3-setuptools with bundled(python3dist(jaraco-text)) with bundled(python3dist(packaging)) with bundled(python3dist(platformdirs))) This will pull in setuptools 80 or 82 successfully. It might no longer work in the future, but it will work as long as setuptools keeps the 3 bundled libraries. When the bundled libraries are updated to an incompatible version in the main setuptools package, again it will likely not be tested in %check. Solution 3: Move the bundled things from setuptools80 to pkg-resources by mv and a small patch. I will experiment with this to see how much effort it is. Likely the safest option. FEDORA-2026-3d00dafc3b (python-setuptools80-80.10.2-4.fc45) has been submitted as an update to Fedora 45. https://bodhi.fedoraproject.org/updates/FEDORA-2026-3d00dafc3b FEDORA-2026-3d00dafc3b (python-setuptools80-80.10.2-4.fc45) has been pushed to the Fedora 45 stable repository. If problem still persists, please make note of it in this bug report. |