.
. . . .
. Welcome to Setuptools’ documentation!
.
. . . . .
Packages built and distributed using setuptools look to the user like ordinary Python packages based on the distutils. .
. Upload these ‘distributables’ to … . . .
7.11 v46.2.0. . .
. . .
. . .
. .
The setup script is the centre of all activity in building, distributing, and installing modules using the Distutils.
.
Getting Started With setuptools and setup.py ¶ setuptools is a rich and complex program.
. The setup configuration file is a useful middle-ground between the setup script—which, ideally, would be opaque to installers 1—and the command-line to the setup script, which is outside of your control and entirely up to the installer. The pkg_resources module distributed with setuptools provides an API for Python libraries to access their resource files, and for extensible applications and frameworks to automatically discover plugins. .
. . . . . . If you set Sphinx options directly in the setup() command, replace hyphens in variable names with underscores. . . . . Or add this section in setup.cfg: [build_sphinx] project = 'My project' version = 1.2 release = 1.2. . .
. Using setuptools integration¶. . . . Build egg, source, and window installer ‘distributables’. . .
. . Using setuptools integration ... , 'source_dir': ('setup.py', 'doc')}},) Note. . . . .
.
The Sphinx build can then be triggered from distutils, and some Sphinx options can be set in setup.py or setup.cfg instead of Sphinx's own configuration file.. For instance, from setup…
.
. . . . . . .
. . 7.11 v45.3.0. . .
. . .
. . .
. . . . . . ¶ Setuptools is a fully-featured, actively-maintained, and stable library designed to facilitate packaging Python projects, where packaging … . .
. In the example above, source-dir becomes source_dir. . . . . . Setuptools is a collection of enhancements to the Python distutils that allow developers to more easily build and distribute Python packages, especially ones that have dependencies on other packages. . . . .
. 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. . . . . — setuptools 46.1.3 documentation Welcome to Setuptools’ documentation! This tutorial will focus on the bare minimum basics you need to get setuptools running so you can: Register your package on pypi.