Bug 8532 - setup.py is deprecated
Summary: setup.py is deprecated
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Build system (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-25 12:23 CET by Alexander Zeijlon
Modified: 2025-02-25 13:42 CET (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Alexander Zeijlon cendio 2025-02-25 12:23:02 CET
Our Python 3 modules have historically used the bundled setup.py-file as a means of building and installing when creating packages for cenbuild.

This method has been deprecated [1], and as a consequence of this, newer versions often do not come bundled with a setup.py.

[1] https://packaging.python.org/en/latest/discussions/setup-py-deprecated/

We therefore need to find some alternative way to build and install.
Comment 1 Alexander Zeijlon cendio 2025-02-25 12:28:21 CET
In bug 8432 I looked at one alternative to setup.py, the modules "installer" and "flit_core". See bug 8432 comment 12.
Comment 2 Alexander Zeijlon cendio 2025-02-25 12:49:53 CET
I looked for inspiration in how RHEL packages python modules, and it's a bit more complicated than using the modules mentioned above.

It looks like they are using flit_core, but only in a bootstrapping context, as a means of building Pip and some additional dependencies. And then for all other packages, they are using Pip to build.

Installing is done via rpm macros.

See also:
  https://src.fedoraproject.org/rpms/pyproject-rpm-macros
  https://src.fedoraproject.org/rpms/python-pip
  https://src.fedoraproject.org/rpms/python-wheel
  https://src.fedoraproject.org/rpms/python-flit-core

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