Bug 2377285

Summary: h5py: Stop using deprecated %py3_build/%py3_install macros
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: h5pyAssignee: Terje Rosten <terjeros>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: orion, steve.traylen, terjeros
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: h5py-3.15.0-1.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-10-14 07:03:36 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: 2376118    

Description Miro Hrončok 2025-07-08 14:06:48 UTC
Dear package maintainer,

this bugzilla is automated becasue the number of impacted packages it too high to go trough manually.


It appears that your package uses the deprecated %py3_build and/or %py3_install macro.

See https://fedoraproject.org/wiki/Changes/DeprecateSetuppyMacros for why the macros are deprecated.

%py3_install expands to python setup.py install. This has been a deprecated command for 5 years and will likely stop working in Fedora 45.



Please migrate to %pyproject_buildrequires + %pyproject_wheel + %pyproject_install macros instead.

See https://fedoraproject.org/wiki/Changes/DeprecateSetuppyMacros#Migrating_to_%pyproject_macros for migration guide.

See https://github.com/hroncok/pyprojectize/ for a tool that can help you automate the migration.


Thank you. Let me know if you need help.

Comment 1 Orion Poplawski 2025-08-02 19:52:06 UTC
Miro - any suggestions for how to leverage %pyproject_save_files and the different MPI builds of the module?

Comment 2 Orion Poplawski 2025-08-02 20:21:33 UTC
Initial start here: https://src.fedoraproject.org/rpms/h5py/pull-request/13

Comment 3 Miro Hrončok 2025-08-02 21:50:35 UTC
No idea. Note that calling %pyproject_install 3 times is likely not going to do what you expect -- it normally installs all the wheels previously built.

Currently, all the %pyproject_ macros state is islated on the level of %{python3_pkgversion} -- you should be able to redefine %_pyproject_files_pkgversion multiple times for completely isolated builds.

See https://src.fedoraproject.org/rpms/pyproject-rpm-macros/blob/rawhide/f/macros.pyproject#_3

Comment 4 Fedora Update System 2025-10-14 07:00:22 UTC
FEDORA-2025-197e9a42d9 (h5py-3.15.0-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-197e9a42d9

Comment 5 Fedora Update System 2025-10-14 07:03:36 UTC
FEDORA-2025-197e9a42d9 (h5py-3.15.0-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.