Bug 2377320 - mailnag: Stop using deprecated %py3_build/%py3_install macros
Summary: mailnag: Stop using deprecated %py3_build/%py3_install macros
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: mailnag
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Thorsten Leemhuis
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2376118
TreeView+ depends on / blocked
 
Reported: 2025-07-08 14:09 UTC by Miro Hrončok
Modified: 2025-07-15 09:26 UTC (History)
1 user (show)

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


Attachments (Terms of Use)

Description Miro Hrončok 2025-07-08 14:09:10 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 Thorsten Leemhuis 2025-07-15 09:26:56 UTC
(In reply to Miro Hrončok from comment #0)
> Thank you. Let me know if you need help.

Miro, I could use some help, as I ran into a problem after using pyprojectize:

"""
+ /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /home/thl/usr/git/mailnag.fedpkg/mailnag-2.2.0-build/mailnag-2.2.0/pyproject-wheeldir --output /home/thl/usr/git/mailnag.fedpkg/mailnag-2.2.0-build/mailnag-2.2.0-20.fc43.noarch-pyproject-buildrequires
Handling setuptools >= 40.8 from default build backend
Requirement satisfied: setuptools >= 40.8
   (installed: setuptools 74.1.3)
error: package directory 'build/patched/common' does not exist
error: Bad exit status from /var/tmp/rpm-tmp.QGRrCB (%generate_buildrequires)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.QGRrCB (%generate_buildrequires)
"""

Do you know what might be wrong? A pointer/tip might be all I need, but feel free to change the package yourself if you want.

OTOH maybe it's time to drop this package, as upstream seems to be dead. :-/


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