Bug 2378465 - spec2scl: Stop using deprecated %py3_build/%py3_install macros
Summary: spec2scl: Stop using deprecated %py3_build/%py3_install macros
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: spec2scl
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Staněk
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2376118
TreeView+ depends on / blocked
 
Reported: 2025-07-08 15:26 UTC by Miro Hrončok
Modified: 2025-07-10 10:27 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-07-10 10:27:26 UTC
Type: ---
Embargoed:
jstanek: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-1795 0 None None None 2025-07-09 13:15:51 UTC

Description Miro Hrončok 2025-07-08 15:26:52 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 Jan Staněk 2025-07-09 13:14:44 UTC
Modernized the package a bit, using rpmautospec convert [1] and pyprojectize [2]. So far seems to be building and working.

[1]: https://src.fedoraproject.org/rpms/spec2scl/c/5ac0ef59e429896ac479d5742e789dc64ba53333?branch=rawhide
[2]: https://src.fedoraproject.org/rpms/spec2scl/c/d0c62f60539028426aa766233946efe190b0b499?branch=rawhide

Comment 2 Jan Staněk 2025-07-09 13:18:57 UTC
Build submitted, but the reference to this bug was apparently not picked.

https://bodhi.fedoraproject.org/updates/FEDORA-2025-8f74688669

Comment 3 Jan Staněk 2025-07-10 10:27:26 UTC
Lnaded in rawhide.


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