2. Writing the Setup Script — Python 3.11.7 documentation
This document is being retained solely until the setuptools documentation at https://setuptools.readthedocs.io/en/latest/setuptools.html independently covers all of the relevant information currently included here. The setup script is the centre of all activity in building, distributing, and installing modules using the Distutils. The main purpose of the setup script is to describe your module distribution to the Distutils, so that the various commands that operate on your modules do the right thing. As we saw in section A Simple Example above, the setup script consists mainly of a call to setup(), and most information supplied to the Distutils by the module developer is supplied as keyword arguments to setup(). Here’s a slightly more involved example, which we’ll follow for the next couple of sections: the Distutils’ own setup script. (Keep in mind that although the Distutils are included with Python 1.6 and later, they also have an independent existence so that Python 1.5.2 users can
2. Writing the Setup Script — Python 3.11.15 documentation Navigation index modules | next | previous | Python » 3.11.15 Documentation » Distributing Python Modules (Legacy version) » 2. Writing the Setup Script | Theme Auto Light Dark | 2. Writing the Setup Script ¶ Note This document is being retained solely until the setuptools documentation at https://setuptools.readthedocs.io/en/latest/setuptools.html independently covers all of the relevant information currently included here. The setup script is the centre of all activity in building, distributing, and installing mo
related reading
- Why you shouldn't invoke setup.py directlyblog.ganssle.io
- [Live Demo] Python Setuptools Tutorial | Package Python Code | PIP Install Python Codeyoutube.com
- The Architecture of Open Source Applications (Volume 1)Python Packagingaosabook.org
- 9. Classes — Python 3.14.6 documentationdocs.python.org
- styleguide | Style guides for Google-originated open-source projectsgoogle.github.io
- Building a Python Appstevedower.id.au
- Get Startedpytorch.org
- Python Virtual Environments: A Primer – Real Pythonrealpython.com
- Getting Started with the RDKit in Python — The RDKit 2026.03.6 documentationrdkit.org
- Modules Management - Airflow 3.3.0 Documentationairflow.apache.org
- python - Relative imports for the billionth time - Stack Overflowstackoverflow.com
- Niels Cautaerts - Python dependency management is a dumpster firenielscautaerts.xyz