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

Migrate off the deprecated setup.py #19

Open
C0rn3j opened this issue May 1, 2024 · 1 comment · May be fixed by #28
Open

Migrate off the deprecated setup.py #19

C0rn3j opened this issue May 1, 2024 · 1 comment · May be fixed by #28

Comments

@C0rn3j
Copy link
Contributor

C0rn3j commented May 1, 2024

/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
Copy link
Contributor Author

C0rn3j commented Nov 19, 2024

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

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

Successfully merging a pull request may close this issue.

1 participant