Bug 2319694
Summary: | python-pyasn1 fails to build with setuptools 74+ | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | python-pyasn1 | Assignee: | Rob Crittenden <rcritten> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | rcritten, spichugi |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-pyasn1-0.6.1-2.fc42 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2024-10-29 10:53:10 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: | 2319387 |
Description
Miro Hrončok
2024-10-18 10:12:38 UTC
I'm having trouble with the conversion because of a subpackage. When I use the %pyproject_save_files macro the build fails with: Traceback (most recent call last): File "/usr/lib/rpm/redhat/pyproject_save_files.py", line 889, in <module> main(cli_args) ~~~~^^^^^^^^^^ File "/usr/lib/rpm/redhat/pyproject_save_files.py", line 835, in main file_section, module_names = pyproject_save_files_and_modules( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cli_args.buildroot, ^^^^^^^^^^^^^^^^^^^ ...<6 lines>... cli_args.varargs, ^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/rpm/redhat/pyproject_save_files.py", line 800, in pyproject_save_files_and_modules parsed_records = load_parsed_record(pyproject_record) File "/usr/lib/rpm/redhat/pyproject_save_files.py", line 765, in load_parsed_record raise FileExistsError("%pyproject_install has found more than one *.dist-info/RECORD file. " "Currently, %pyproject_save_files supports only one wheel → one file list mapping. " "Feel free to open a bugzilla for pyproject-rpm-macros and describe your usecase.") FileExistsError: %pyproject_install has found more than one *.dist-info/RECORD file. Currently, %pyproject_save_files supports only one wheel → one file list mapping. Feel free to open a bugzilla for pyproject-rpm-macros and describe your usecase. If you build multiple Python packages from one specfile, you cannot use %pyproject_save_files. You need to list the files in %files manually. Yeah I had read that, it was a last resort. I was seeing final packaging failures so I tried %pyproject_save_files. I just removed it and now suddenly the build is successful!? Well, I won't argue with success. BTW I used your pyprojectize tool to do the initial conversion and fine-tuned after that. I'll get a PR up with my changes soon. I plan to update setuptools to 74.x in rawhide this week. At that point, this package will fail to build from source if not fixed. It builds fine for me with: mock -r fedora-rawhide-x86_64 --addrepo 'https://download.copr.fedorainfracloud.org/results/churchyard/setuptools-74/fedora-rawhide-$basearch/' python-pyasn1-0.6.1-2.fc42.src.rpm ... Wrote: /builddir/build/SRPMS/python-pyasn1-0.6.1-2.fc42.src.rpm Wrote: /builddir/build/RPMS/python-pyasn1-doc-0.6.1-2.fc42.noarch.rpm Wrote: /builddir/build/RPMS/python3-pyasn1-modules-0.6.1-2.fc42.noarch.rpm Wrote: /builddir/build/RPMS/python3-pyasn1-0.6.1-2.fc42.noarch.rpm Finish: rpmbuild python-pyasn1-0.6.1-2.fc42.src.rpm Finish: build phase for python-pyasn1-0.6.1-2.fc42.src.rpm INFO: Done(python-pyasn1-0.6.1-2.fc42.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 53 seconds INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result Finish: run I sent that comment to this bugzilla accidentally. Sorry about that. |