Bug 2567105

Summary: copr-rpmbuild: Stop using deprecated %py_build/%py_install macros
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: copr-rpmbuildAssignee: Copr Team <copr-team>
Status: MODIFIED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: clime7, copr-team, jkadlcik, praiskup
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
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 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