Migrate off the deprecated `setup.py`
C0rn3j opened this issue · 1 comments
C0rn3j commented
/usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
C0rn3j commented
The error in OP was actually on me for running setup.py
directly when packaging it in AUR (now using build+install), but migrating to pyproject.toml
is still a good idea.
Random (more complex) project as an example -
https://github.com/C0rn3j/sc-controller/blob/python3/pyproject.toml