Jump to content

setuptools

From Wikipedia, the free encyclopedia
setuptools
Original author(s)Phillip J. Eby
Developer(s)Jason R. Coombs
Stable release
70.0.0[1] / 21 May 2024; 27 days ago (21 May 2024)
Repository
Written inPython
Operating systemCross-platform
TypePackage manager
LicenseMIT
Websitesetuptools.readthedocs.io Edit this at Wikidata, PyPI page

setuptools is a package development process library designed to facilitate packaging Python projects by enhancing the Python standard library distutils (distribution utilities). It includes:

  • Python package and module definitions
  • Distribution package metadata
  • Test hooks
  • Project installation
  • Platform-specific details
  • Python 3 support

History[edit]

On 2004-03-17, Phillip J. Eby announced the existence of the project.[2] In 2013, Distribute, a fork of setuptools, was merged back into setuptools 0.7.

Package format[edit]

Wheel
Original author(s)Daniel Holth
Stable release
0.43.0[3] Edit this on Wikidata / 11 March 2024
Repositorygithub.com/pypa/wheel
Written inPython
Operating systemCross-platform
TypePackage format
LicenseMIT
Websitepypi.org/project/wheel/

Python wheels have replaced eggs.[4]

Python eggs are a way of bundling additional information with a Python project, that allows the project's dependencies to be checked and satisfied at runtime, as well as allowing projects to provide plugins for other projects.

"Eggs are to Pythons as Jars are to Java..."

Package manager[edit]

Python pip has replaced EasyInstall.[5]

EasyInstall is a package manager for Python that provides a standard format for distributing Python programs and libraries (based on the Python Eggs format). EasyInstall is a module bundled with setuptools.[6] It is analogous to RubyGems for Ruby.

EasyInstall is not a fully fledged package manager. It cannot list local packages nor update them all. Pip and Python Package Manager (PyPM) are Python applications designed to fulfill a similar role as EasyInstall. The Distribute fork was created specifically due to the lack of progress in EasyInstall development.[7]

By default, EasyInstall looks in the Python Package Index (PyPI) for the desired packages and uses the metadata there to download and install the package and its dependencies.

See also[edit]

References[edit]

  1. ^ "Release 70.0.0". 21 May 2024. Retrieved 25 May 2024.
  2. ^ Eby, Phillip J. (7 March 2004). ""setuptools" package preview". Distutils-SIG. Retrieved 17 July 2021.
  3. ^ "Release 0.43.0". 11 March 2024. Retrieved 26 March 2024.
  4. ^ "Wheel: A built-package format for Python".
  5. ^ jaraco: Replace easy_install with pip install. Jan 9, 2017.
  6. ^ http://peak.telecommunity.com/DevCenter/setuptools September 1, 2009
  7. ^ Tarek Ziade. "The strange world of packaging – forking setuptools". Retrieved 10 October 2011.

External links[edit]