A build backend and library for packaging Python projects
open sourceMITfree
setuptools is a library for packaging Python projects: as the build backend named in a project's pyproject.toml (setuptools.build_meta), it builds source distributions and wheels that pip installs and that can be uploaded to PyPI. It finds packages and namespace packages, takes metadata from pyproject.toml or setup.cfg, declares dependencies and entry points, includes data files, supports editable installs during development and builds C and C++ extension modules. It's maintained by the Python Packaging Authority under the MIT licence, and professional support is sold through Tidelift.
Problems it solves
- package my Python library so other people can pip install it
- build a wheel for a Python package that has a C extension
- declare my Python project's dependencies and command-line entry points in pyproject.toml
- install my Python project in editable mode while I work on it
Features
- build backend for pyproject.toml (setuptools.build_meta)
- builds source distributions and wheels
- package and namespace package discovery
- configuration in pyproject.toml or setup.cfg
- editable installs for development
- builds C and C++ extension modules
- entry points and data files
Capabilities
| Takes plugins | plan not known |
|---|
Alternatives
The same job
These do what setuptools does.
- Cabal System for building and packaging Haskell libraries and programs