Bug 2567105 - copr-rpmbuild: Stop using deprecated %py_build/%py_install macros
Summary: copr-rpmbuild: Stop using deprecated %py_build/%py_install macros
Keywords:
Status: MODIFIED
Alias: None
Product: Fedora
Classification: Fedora
Component: copr-rpmbuild
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Copr Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2376118
TreeView+ depends on / blocked
 
Reported: 2026-11-04 17:04 UTC by Miro Hrončok
Modified: 2026-11-09 10:32 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2026-11-04 17:04:56 UTC
Dear package maintainer,

It appears that your package uses the deprecated %py_build and %py_install macros.

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

%py_install expands to python setup.py install. This has been a deprecated command for 6 years and will likely stop working in Fedora 46+.



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 Jakub Kadlčík 2026-11-09 10:32:34 UTC
Modified in https://github.com/fedora-copr/copr/pull/4605


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