. . Using setuptools integration¶. .
. . 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… 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.
. . .
.
. . . . Welcome to Setuptools’ documentation! Getting Started With setuptools and setup.py ¶ setuptools is a rich and complex program. . .
. In the example above, source-dir becomes source_dir. . .
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. . .
Upload these ‘distributables’ to … 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.
If you set Sphinx options directly in the setup() command, replace hyphens in variable names with underscores. . . .
. . . . . . . . . Using setuptools integration ... , 'source_dir': ('setup.py', 'doc')}},) Note. . . . . . . . . .
. . . . . . . . . — setuptools 46.1.3 documentation Welcome to Setuptools’ documentation! . ¶ Setuptools is a fully-featured, actively-maintained, and stable library designed to facilitate packaging Python projects, where packaging …
. .
. . . . .
. . . This tutorial will focus on the bare minimum basics you need to get setuptools running so you can: Register your package on pypi. 7.11 v46.2.0.
. . . . .
. Packages built and distributed using setuptools look to the user like ordinary Python packages based on the distutils. Or add this section in setup.cfg: [build_sphinx] project = 'My project' version = 1.2 release = 1.2. . . . . . Build egg, source, and window installer ‘distributables’.
. . . . .
. . 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. . . . The setup script is the centre of all activity in building, distributing, and installing modules using the Distutils. . . . . . . .
. . 7.11 v45.3.0. . . . .
.