Why you shouldn't invoke setup.py directly
TL;DR: The setuptools team no longer wants to be in the business of providing a command line interface and is actively working to become just a library for building packages. What you should do instead depends on your use case, but if you want some basic rules of thumb, there is a table in the summary section. This does not mean that setuptools itself is deprecated, or that using setup.py to configure your package builds is going to be removed. The only thing you must stop doing is directly executing the setup.py file — instead delegate that to purpose-built or standards-based tools, preferably those that work with any build backend. For a long time, setuptools and distutils were the only game in town when it came to creating Python packages, and both of these provided a simple enough interface: you write a setup.py file that invokes the setup() method, you get a Makefile-like interface exposed by invoking python setup.py . So, for example, to build a source distribution, you
Why you shouldn't invoke setup.py directly TL;DR : The setuptools team no longer wants to be in the business of providing a command line interface and is actively working to become just a library for building packages. What you should do instead depends on your use case, but if you want some basic rules of thumb, there is a table in the summary section . This does not mean that setuptools itself is deprecated, or that using setup.py to configure your package builds is going to be removed. The only thing you must stop doing is directly executing the setup.py file — instead delegate that to purp
related reading
- 2. Writing the Setup Script — Python 3.11.15 documentationdocs.python.org
- [Live Demo] Python Setuptools Tutorial | Package Python Code | PIP Install Python Codeyoutube.com
- Building a Python Appstevedower.id.au
- The Architecture of Open Source Applications (Volume 1)Python Packagingaosabook.org
- Do not use requirements.txt - quanttypequanttype.net
- Niels Cautaerts - Python dependency management is a dumpster firenielscautaerts.xyz
- uvdocs.astral.sh
- PEP 810 – Explicit lazy imports | peps.python.orgpeps.python.org
- styleguide | Style guides for Google-originated open-source projectsgoogle.github.io
- Get Startedpytorch.org
- GitHub - konstin/sudoku-in-python-packaging: Sudoku solving in python packaginggithub.com
- Python: Just write SQLjoaodlf.com