Edgewall Software

Changes between Version 16 and Version 17 of setuptools


Ignore:
Timestamp:
Jan 20, 2017, 4:48:19 AM (7 years ago)
Author:
Ryan J Ollos
Comment:

Move some content from 1.3/TracInstall.

Legend:

Unmodified
Added
Removed
Modified
  • setuptools

    v16 v17  
    11= setuptools
     2[[PageOutline(2-5, Contents, pullout)]]
    23
    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.
     4[http://peak.telecommunity.com/DevCenter/setuptools setuptools] is a Python module that helps to compile, distribute and install Python packages by packaging them into "egg"s. Eggs contain additional information to process dependencies, etc. The setuptools package is required for installing Trac.
     5
     6== Check your setuptools version
    47
    58The version of your setuptools installation can be checked with the following commands (should work for other Python packages too):
     
    1114'0.7a1'
    1215}}}
     16
     17== Install setuptools
    1318
    1419Setuptools can be installed using the bootstrap script from the [pypi: Python Package Indexer] ([pypi:setuptools#installation-instructions installation instructions]):
     
    2833 More details can be found in TracInstall#DeployingTrac.
    2934
    30 setuptools includes the "easy_install" script for convenient installation of packages found on [pypi:setuptools/ Python Package Index] including Trac with all necessary dependencies.
     35== Install Trac using `easy_install`
     36
     37setuptools includes the `easy_install` script for convenient installation of packages found on [pypi:setuptools/ Python Package Index] including Trac with all necessary dependencies.
    3138
    3239{{{#!sh
     
    3441}}}
    3542
     43{{{#!div style="border: 1pt dotted; margin: 1em"
     44**Note**: `pip` is a modern package installer that was developed as a replacement for `easy_install`, which you should use instead if it's available for your platform. See TracInstall for more information.
     45}}}
     46
    3647If you are working behind a proxy, note that easy_install will rely on environment variables, such as http_proxy, https_proxy, ftp_proxy.
     48
     49== Install Trac from source using `easy_install`
     50
     51Using the python-typical setup at the top of the source directory also works. You can obtain the source for a .tar.gz or .zip file corresponding to a release (e.g. `Trac-1.0.tar.gz`) from the [trac:TracDownload] page, or you can get the source directly from the repository. See [trac:TracRepositories#OfficialSubversionrepository TracRepositories] for details.
     52
     53{{{#!sh
     54$ python ./setup.py install
     55}}}
     56
     57''You will need root permissions or equivalent for this step.''
     58
     59This will byte-compile the Python source code and install it as an .egg file or folder in the `site-packages` directory
     60of your Python installation. The .egg will also contain all other resources needed by standard Trac, such as `htdocs` and `templates`.
     61
     62If you install from source and want to make Trac available in other languages, make sure Babel is installed. Only then, perform the `install` (or simply redo the `install` once again afterwards if you realize Babel was not yet installed):
     63{{{#!sh
     64$ python ./setup.py install
     65}}}
     66Alternatively, you can run `bdist_egg` and copy the .egg from `dist/` to the place of your choice, or you can create a Windows installer (`bdist_wininst`).
     67
     68=== Advanced `easy_install` Options
     69
     70To install Trac to a custom location, or find out about other advanced installation options, run:
     71{{{#!sh
     72$ easy_install --help
     73}}}
     74
     75Also see [http://docs.python.org/2/install/index.html Installing Python Modules] for detailed information.
     76
     77Specifically, you might be interested in:
     78{{{#!sh
     79$ easy_install --prefix=/path/to/installdir
     80}}}
     81or, if installing Trac on a Mac OS X system:
     82{{{#!sh
     83$ easy_install --prefix=/usr/local --install-dir=/Library/Python/2.6/site-packages
     84}}}
     85
     86{{{#!div style="border: 1pt dotted; margin: 1em"
     87**Mac OS X Note:** On Mac OS X 10.6,  running `easy_install trac` will install into `/usr/local` and `/Library/Python/2.6/site-packages` by default.
     88
     89The `tracd` and `trac-admin` commands will be placed in `/usr/local/bin` and will install the Trac libraries and dependencies into `/Library/Python/2.6/site-packages`, which is Apple's preferred location for third-party Python application installations.
     90}}}
     91
    3792
    3893== Reference Documentation