Move away from distutils/setuptools

#714 · open · 5 comments

View on GitHub ↗

lazka

They are more or less unmaintained and the only useful thing they provide, custom commands via setup.py, is deprecated for a long time. Common alternatives for pure packages would be flit-core or hatchling (there also is uv, poetry, pdm etc) Anyone have any preferences? For the commands we can add a just file or something, if needed.

Comments

lazka

We'll try to get rid of setup.py first, and then try hatchling.

audiomuze

uv would be my suggestion.

lazka

You mean uv_build? That only supports pure Python packages.

phw

> That only supports pure Python packages. Which is fine in this case, right?

lazka

oh, right, wrong repo, sorry :/ In theory yes, not sure it's worth pulling in a native/rust dependency for what mutagen needs.