Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distutils / setup.py deprecation #146

Open
baldurmen opened this issue Jun 13, 2023 · 0 comments
Open

Distutils / setup.py deprecation #146

baldurmen opened this issue Jun 13, 2023 · 0 comments

Comments

@baldurmen
Copy link
Contributor

Hello,

This project uses the Python distutils module in setup.py.

In Python 3.10 and 3.11, distutils has been formally marked as deprecated. Code that imports distutils will no longer work from Python 3.12.

As such, it's very likely Debian (I'm the current maintainer for pius) won't be able to build this package when the 3.12 transition happens (sometime in late 2023 probably?).

It would probably be a good idea to migrate away from setup.py to a PEP517-compatible build system, using pyproject.toml. Here's the relevant documentation if you want to go with setuptools (there are a lot of other good options, I'm myself partial to flit...)

You can see an example of a migration to pyproject.toml with setuptools that I did here: jaseg/python-mpv#241

@baldurmen baldurmen changed the title Distutils / setup.py for building deprecation Distutils / setup.py deprecation Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant