setuptools is a set of enhancements to Python's distutils which simplify building, distribution and installation of Python packages.
setuptools is a (largely) drop-in replacement for distutils first published in 2004. Its most notable addition over the unmodified distutils tools was the ability to declare dependencies on other packages. It is currently recommended as a more regularly updated alternative to distutils that offers consistent support for more recent packaging standards across a wide range of Python versions.
The recommended pip installer runs all setup.py scripts with setuptools, even if the script itself only imports distutils.
This text is Copyright © 2001-2021 Python Software Foundation; All Rights Reserved.
Tag usage
- Questions about
setuptools-specific features should be tagged setuptools. - If a question is only about functionality common to both
distutilsandsetuptools, the distutils tag can be used in advance. - If it's unclear that the question author is using
setuptools, the distutils tag should be used instead.
Other related tags: packaging setup.py pyproject.toml twine cython