Download, build, install, upgrade, and uninstall Python packages -- easily!
Table of Contents
Install setuptools using the provided .exe installer. If you’ve previously installed older versions of setuptools, please delete all setuptools*.egg and setuptools.pth files from your system’s site-packages directory (and any other sys.path directories) FIRST.
If you are upgrading a previous version of setuptools that was installed using an .exe installer, please be sure to also uninstall that older version via your system’s “Add/Remove Programs” feature, BEFORE installing the newer version.
Once installation is complete, you will find an easy_install.exe program in your Python Scripts subdirectory. Be sure to add this directory to your PATH environment variable, if you haven’t already done so.
Install setuptools using the provided source RPM. The included .spec file assumes you are installing using the default python executable, and is not specific to a particular Python version. The easy_install executable will be installed to a system bin directory such as /usr/bin.
If you wish to install to a location other than the default Python installation’s default site-packages directory (and $prefix/bin for scripts), please use the .egg-based installation approach described in the following section.
- Download the appropriate egg for your version of Python (e.g. setuptools-0.6c4-py2.4.egg). Do NOT rename it.
- Run it as if it were a shell script, e.g. sh setuptools-0.6c4-py2.4.egg. Setuptools will install itself using the matching version of Python (e.g. python2.4), and will place the easy_install executable in the default location for installing Python scripts (as determined by the standard distutils configuration files, or by the Python installation).
If you want to install setuptools to somewhere other than site-packages or your default distutils installation locations for libraries and scripts, you may include EasyInstall command-line options such as --prefix, --install-dir, and so on, following the .egg filename on the same command line. For example:
sh setuptools-0.6c4-py2.4.egg --prefix=~
If you are trying to install setuptools for the Windows version of Python (as opposed to the Cygwin version that lives in /usr/bin), you must make sure that an appropriate executable (python2.3, python2.4, or python2.5) is on your Cygwin PATH when invoking the egg. For example, doing the following at a Cygwin bash prompt will install setuptools for the Windows Python found at C:\\Python24:
ln -s /cygdrive/c/Python24/python.exe python2.4 PATH=.:$PATH sh setuptools-0.6c4-py2.4.egg rm python2.4
All setuptools downloads can be found at the project’s home page in the Python Package Index. Scroll to the very bottom of the page to find the links.
Here are some of the available manuals, tutorials, and other resources for learning about Setuptools, Python Eggs, and EasyInstall:
- The EasyInstall user’s guide and reference manual
- The setuptools Developer’s Guide
- The pkg_resources API reference
- Package Compatibility Notes (user-maintained)
- The Internal Structure of Python Eggs
Questions, comments, and bug reports should be directed to the distutils-sig mailing list. If you have written (or know of) any tutorials, documentation, plug-ins, or other resources for setuptools users, please let us know about them there, so this reference list can be updated.
- The original design for the .egg format and the pkg_resources API was co-created by Phillip Eby and Bob Ippolito. Bob also implemented the first version of pkg_resources, and supplied the OS X operating system version compatibility algorithm.
- Ian Bicking implemented many early “creature comfort” features of easy_install, including support for downloading via Sourceforge and Subversion repositories. Ian’s comments on the Web-SIG about WSGI application deployment also inspired the concept of “entry points” in eggs, and he has given talks at PyCon and elsewhere to inform and educate the community about eggs and setuptools.
- Jim Fulton contributed time and effort to build automated tests of various aspects of easy_install, and supplied the doctests for the command-line .exe wrappers on Windows.
- Phillip J. Eby is the principal author and maintainer of setuptools, and first proposed the idea of an importable binary distribution format for Python application plug-ins.
- Significant parts of the implementation of setuptools were funded by the Open Source Applications Foundation, to provide a plug-in infrastructure for the Chandler PIM application. In addition, many OSAF staffers (such as Mike “Code Bear” Taylor) contributed their time and stress as guinea pigs for the use of eggs and setuptools, even before eggs were “cool”. (Thanks, guys!)
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size setuptools-0.6c7-1.src.rpm (261.5 kB)||File type RPM||Python version any||Upload date||Hashes View|
|Filename, size setuptools-0.6c7-py2.3.egg (1.0 MB)||File type Egg||Python version 2.3||Upload date||Hashes View|
|Filename, size setuptools-0.6c7-py2.4.egg (326.9 kB)||File type Egg||Python version 2.4||Upload date||Hashes View|
|Filename, size setuptools-0.6c7-py2.5.egg (322.8 kB)||File type Egg||Python version 2.5||Upload date||Hashes View|
|Filename, size setuptools-0.6c7.tar.gz (249.2 kB)||File type Source||Python version None||Upload date||Hashes View|
|Filename, size setuptools-0.6c7.win32-py2.3.exe (216.2 kB)||File type Windows Installer||Python version 2.3||Upload date||Hashes View|
|Filename, size setuptools-0.6c7.win32-py2.4.exe (220.3 kB)||File type Windows Installer||Python version 2.4||Upload date||Hashes View|
|Filename, size setuptools-0.6c7.win32-py2.5.exe (220.2 kB)||File type Windows Installer||Python version 2.5||Upload date||Hashes View|
|Filename, size setuptools-0.6c7.zip (273.1 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for setuptools-0.6c7.win32-py2.3.exe
Hashes for setuptools-0.6c7.win32-py2.4.exe
Hashes for setuptools-0.6c7.win32-py2.5.exe