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

setup.py install is deprecated #1781

Closed
intgr opened this issue Oct 19, 2023 · 2 comments · Fixed by #1794 · May be fixed by #1570
Closed

setup.py install is deprecated #1781

intgr opened this issue Oct 19, 2023 · 2 comments · Fixed by #1794 · May be fixed by #1570

Comments

@intgr
Copy link
Collaborator

intgr commented Oct 19, 2023

Will need to deal with this at one point. https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html

This warning shows up when making a release:

.../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.
        ********************************************************************************

!!
@GabDug
Copy link
Contributor

GabDug commented Oct 19, 2023

I can go back to #1570 if needed :)

@intgr
Copy link
Collaborator Author

intgr commented Oct 19, 2023

Full-on pyproject.toml usage is one solution.

Seems like this warning will also be silenced by a smaller change in scripts/release.sh

-python setup.py sdist bdist_wheel
+python -m build

@intgr intgr changed the title setup.py is deprecated setup.py install is deprecated Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants