1 | | = !SetupTools = |
2 | | |
3 | | [http://peak.telecommunity.com/DevCenter/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 [TracPlugins plugins] can be packaged as eggs since [milestone:0.9]. Starting with [milestone:0.11] Trac itself can also be packaged using setuptools. |
4 | | |
5 | | Installed setuptools version can be checked with the following commands (should work for other Python packages too): |
6 | | {{{ |
7 | | #!sh |
8 | | $ python |
9 | | Python 2.3.5 |
10 | | >>> import setuptools |
11 | | >>> setuptools.__version__ |
12 | | '0.7a1' |
13 | | }}} |
14 | | |
15 | | Setuptools can be installed using bootstrap script from PEAK: |
16 | | {{{ |
17 | | #!sh |
18 | | wget http://peak.telecommunity.com/dist/ez_setup.py |
19 | | python ez_setup.py |
20 | | rm ez_setup.py |
21 | | }}} |
22 | | |
23 | | setuptools include "easy_install" script for convenient installation of packages found on [http://pypi.python.org/pypi/setuptools/ Python Package Index] including Trac with all necessary dependencies. |
24 | | |
25 | | {{{ |
26 | | #!sh |
27 | | $ python -m easy_install Trac |
28 | | }}} |
29 | | |
30 | | ---- |
31 | | See also: TracDev/Proposals/Setuptools, [source:sandbox/setuptools] |
| 1 | See [wiki:setuptools]. |