Bug 1789643
Summary: | python-scandir fails to build with Python 3.9 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Charalampos Stratakis <cstratak> |
Component: | python-scandir | Assignee: | Avram Lubkin <aviso> |
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | aviso, cstratak, mhroncok, michel, mplch, pviktori, vstinner |
Target Milestone: | --- | ||
Target Release: | --- | ||
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: | 2020-02-28 10:00:23 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: | 1785415 |
Description
Charalampos Stratakis
2020-01-10 00:27:37 UTC
This is due to PyStructSequence_UnnamedField being now a constant in Python 3.9. This should be easily fixable by changing the type. https://github.com/python/cpython/pull/17005/files scandir is a backport of os.scandir and os.walk from Python 3.5+ standard library. How hard would it be to switch everything that needs scandir to the stdlib, and retire python-scandir? scandir's README says to do: # Use the built-in version of scandir/walk if possible, otherwise # use the scandir module version try: from os import scandir, walk except ImportError: from scandir import scandir, walk > scandir is a backport of os.scandir and os.walk from Python 3.5+ standard library.
> How hard would it be to switch everything that needs scandir to the stdlib, and retire python-scandir?
It's a drop-in replacement. I don't think that it makes sense to use the backport on Python 3.5 and newer.
The documentation says:
"This scandir module is intended to work on Python 2.7+ and Python 3.4+ (and it has been tested on those versions)."
Does another package depend on this 3rd party scandir package?
Nothing in Fedora seems to require this. It indeed shall be retired, if my repoquery is right. We need to adapt our bootstrap sequence not to list this package. I had the same result and went ahead and retired it in master. Will live on in EPEL 6 and 7. This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle. Changing version to 32. The package was retired. |