Edgewall Software

Version 2 (modified by Christian Boos, 13 years ago) ( diff )

alternative way to bootstrap, get setuptools from its svn repository

setuptools

setuptools is a Python module that helps to compile, distribute and install Python packages by wrapping them into "egg"s. Eggs contain additional information to process dependencies, etc. Trac plugins can be packaged as eggs since 0.9. Starting with 0.11 Trac itself can also be packaged using setuptools.

Installed setuptools version can be checked with the following commands (should work for other Python packages too):

$ python
Python 2.3.5
>>> import setuptools
>>> setuptools.__version__ 
'0.7a1' 

Setuptools can be installed using bootstrap script from PEAK:

wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
rm ez_setup.py

Aternatively, it can be obtained from the Python repository:

$ svn co http://svn.python.org/projects/sandbox/trunk/setuptools
$ cd setuptools
$ python setup.py install

If you're using svn 1.6.x, be sure to apply the latest patch in setuptools-issue:64.

setuptools include "easy_install" script for convenient installation of packages found on Python Package Index including Trac with all necessary dependencies.

$ python -m easy_install Trac

See also: TracDev/Proposals/Setuptools, sandbox/setuptools

Note: See TracWiki for help on using the wiki.