Bug 2377285 - h5py: Stop using deprecated %py3_build/%py3_install macros
Summary: h5py: Stop using deprecated %py3_build/%py3_install macros
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: h5py
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Terje Rosten
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2376118
TreeView+ depends on / blocked
 
Reported: 2025-07-08 14:06 UTC by Miro Hrončok
Modified: 2025-10-14 07:03 UTC (History)
3 users (show)

Fixed In Version: h5py-3.15.0-1.fc44
Clone Of:
Environment:
Last Closed: 2025-10-14 07:03:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.