Bug 2048097
Summary: | python3-py4j provides python3dist(py4j) = 0 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | py4j | Assignee: | Raphael Groner <projects.rg> |
Status: | CLOSED CANTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 36 | CC: | ksurma, projects.rg |
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: | 2022-11-11 15:31:33 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: | 2048077 |
Description
Miro Hrončok
2022-01-29 12:25:02 UTC
I fail to see any relation to source tarball as there's definitely a version given as well in %prep to extract. To build, standard with macro %py3_build is used. Why setuptools_scm then as there's no BuildRequires for that? py4j-0.10.9/py4j-python3/setup.py: VERSION_PATH = os.path.join("src", "py4j", "version.py") # For Python 3 compatibility, we can't use execfile; this is 2to3's conversion: exec(compile(open(VERSION_PATH).read(), VERSION_PATH, "exec")) VERSION = __version__ # noqa ... setup(..., version=VERSION, ...) py4j-0.10.9/py4j-python3/src/py4j/version.py: __version__ = '' The build log has: + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' WARNING: '' not a valid package name; please use only .-separated package names in setup.py /usr/lib/python3.10/site-packages/setuptools/dist.py:507: UserWarning: The version specified ('') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. The version is actually there in the tarball, but it is removed in %prep: sed -i "s|'.*'|''|" %{name}-python/src/%{name}/version.py Thanks for debugging. That hotfix to drop versionized jar file name was somehow implemented for ant, see comment in spec file. I can try to improve or find a better solution. This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle. Changing version to 36. > The version is actually there in the tarball, but it is removed in %prep: > sed -i "s|'.*'|''|" %{name}-python/src/%{name}/version.py Well, that should not happen while package review, initially. But as comment tells this line is mostly for unversioned jar. The package no longer creates an incorrect automatic provide. |