On 8/14/22 03:33, Miro Hrončok wrote:
On 14. 08. 22 4:57, Orion Poplawski wrote:Can anyone tell me why python-astroid gets built as "UNKNOWN" on EPEL9?Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.mum5to + umask 022 + cd /builddir/build/BUILD + cd astroid-2.12.1 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(pip) >= 19' + echo 'python3dist(packaging)' + '[' -f pyproject.toml ']' + echo 'python3dist(toml)' + rm -rfv UNKNOWN.dist-info/ removed 'UNKNOWN.dist-info/top_level.txt' removed 'UNKNOWN.dist-info/CONTRIBUTORS.txt' removed 'UNKNOWN.dist-info/METADATA' removed 'UNKNOWN.dist-info/LICENSE' removed directory 'UNKNOWN.dist-info/' + '[' -f /usr/bin/python3 ']' + RPM_TOXENV=py39 + HOSTNAME=rpmbuild+ /usr/bin/python3 -s /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3Handling setuptools from build-system.requires Requirement satisfied: setuptools (installed: setuptools 53.0.0) Handling wheel from build-system.requires Requirement satisfied: wheel (installed: wheel 0.36.2) HOOK STDOUT: running egg_info HOOK STDOUT: creating UNKNOWN.egg-info HOOK STDOUT: writing UNKNOWN.egg-info/PKG-INFOHOOK STDOUT: writing dependency_links to UNKNOWN.egg-info/dependency_links.txtHOOK STDOUT: writing top-level names to UNKNOWN.egg-info/top_level.txt HOOK STDOUT: writing manifest file 'UNKNOWN.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest file 'UNKNOWN.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE' HOOK STDOUT: adding license file 'CONTRIBUTORS.txt' HOOK STDOUT: writing manifest file 'UNKNOWN.egg-info/SOURCES.txt' Handling wheel from get_requires_for_build_wheel Requirement satisfied: wheel (installed: wheel 0.36.2) HOOK STDOUT: running dist_info HOOK STDOUT: writing UNKNOWN.egg-info/PKG-INFOHOOK STDOUT: writing dependency_links to UNKNOWN.egg-info/dependency_links.txtHOOK STDOUT: writing top-level names to UNKNOWN.egg-info/top_level.txt HOOK STDOUT: reading manifest file 'UNKNOWN.egg-info/SOURCES.txt' HOOK STDOUT: reading manifest template 'MANIFEST.in' HOOK STDOUT: adding license file 'LICENSE' HOOK STDOUT: adding license file 'CONTRIBUTORS.txt' HOOK STDOUT: writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'HOOK STDOUT: creating '/builddir/build/BUILD/astroid-2.12.1/UNKNOWN.dist-info' HOOK STDOUT: adding license file "CONTRIBUTORS.txt" (matched pattern "CONTRIBUTORS.txt")HOOK STDOUT: adding license file "LICENSE" (matched pattern "LICENSE")Actually, when I build the PR on EPEL 9, I get: Error:Problem 1: nothing provides requested (python3dist(setuptools) >= 62.6 with python3dist(setuptools) < 63) Problem 2: nothing provides requested (python3dist(wheel) >= 0.37.1 with python3dist(wheel) < 0.38)Which is a reasonable error considering pyproject.toml has: [build-system] requires = ["setuptools~=62.6", "wheel~=0.37.1"]No idea how you got into your error. But if you manage to ignore the dependency, you might as well get UNKNOWN name, considering the project stores the name in the [project] section of pyproject.toml (PEP 621) -- something that older setuptools did not understand.If you need to pakcage recent astroid on EL 9, revert: https://github.com/PyCQA/astroid/pull/1670/
Yeah, I'm just going to stick with 2.11.X for EPEL9. Thanks. -- Orion Poplawski he/him/his - surely the least important thing about me IT Systems Manager 720-772-5637 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane or...@nwra.com Boulder, CO 80301 https://www.nwra.com/
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ python-devel mailing list -- python-devel@lists.fedoraproject.org To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue