Bug 2377200 - apx: Stop using deprecated %py3_build/%py3_install macros
Summary: apx: Stop using deprecated %py3_build/%py3_install macros
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: apx
Version: 45
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Raphael Groner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2378139
Blocks: 2376118
TreeView+ depends on / blocked
 
Reported: 2025-07-08 14:00 UTC by Miro Hrončok
Modified: 2026-08-17 13:38 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Miro Hrončok 2025-07-08 14:00: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 Creme Brulee 2025-11-23 23:38:06 UTC
The game won't start for me:

$ apx
/usr/bin/apx:297: PyGIDeprecationWarning: GObject.timeout_add is deprecated; use GLib.timeout_add instead
  gobject.timeout_add(int(1000 / (45 * self.game.speed)), self._tick)
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/apx/splash.py", line 282, in on_first_frame
    func(self.container, lambda: self.on_intro_done())
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/apx/splash.py", line 228, in appear2
    graphics.chain(
    ~~~~~~~~~~~~~~^
        # fly in
        ^^^^^^^^
    ...<4 lines>...
        callback, {},
        ^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.13/site-packages/apx/lib/graphics.py", line 159, in chain
    if isinstance(obj, collections.Callable):
                       ^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'Callable'

Comment 2 Raphael Groner 2025-12-23 15:55:30 UTC
Thanks for your report and sorry for my late response. 

Unfortunately upstream is stalled since several years. Although, Patches welcome.

Comment 3 Aoife Moloney 2026-08-17 13:38:03 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.


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