Add deprecation warning about setup.py

This commit is contained in:
Veronica Berglyd Olsen
2023-05-04 23:32:55 +02:00
parent 18cc8b91dc
commit 023c0da879
2 changed files with 16 additions and 5 deletions
+8
View File
@@ -2064,6 +2064,14 @@ if __name__ == "__main__":
# Run the standard setup
import setuptools # noqa: F401
import warnings # noqa: F401
warnings.warn(
"The setuptools section of setup.py is deprecated and will be removed "
"in a future release and the setup.py file will be renamed to avoid "
"conflicts with build tools. Please don't use the 'setup.py install' "
"command, and instead use the pip and build commands.",
DeprecationWarning
)
setuptools.setup()
# END Main