Changes between Version 18 and Version 19 of setuptools
- Timestamp:
- Jan 23, 2017, 5:44:23 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
setuptools
v18 v19 41 41 }}} 42 42 43 ''You will need root permissions or equivalent (e.g. sudo) for this step.'' 44 43 45 {{{#!div style="border: 1pt dotted; margin: 1em" 44 46 **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. … … 49 51 == Install Trac from source using `easy_install` 50 52 51 Using 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.53 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 54 53 55 {{{#!sh 54 56 $ python ./setup.py install 55 57 }}} 56 57 ''You will need root permissions or equivalent for this step.''58 58 59 59 This will byte-compile the Python source code and install it as an .egg file or folder in the `site-packages` directory … … 81 81 or, if installing Trac on a Mac OS X system: 82 82 {{{#!sh 83 $ easy_install --prefix=/usr/local --install-dir=/Library/Python/2. 6/site-packages83 $ easy_install --prefix=/usr/local --install-dir=/Library/Python/2.7/site-packages 84 84 }}} 85 85 86 On Mac OSX, running `easy_install trac` will install into `/usr/local` and `/Library/Python/2. 6/site-packages` by default.86 On Mac OSX, running `easy_install trac` will install into `/usr/local` and `/Library/Python/2.7/site-packages` by default. 87 87 88 The `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.88 The `tracd` and `trac-admin` commands will be placed in `/usr/local/bin` and will install the Trac libraries and dependencies into `/Library/Python/2.7/site-packages`, which is Apple's preferred location for third-party Python application installations. 89 89 90 90 == Reference Documentation 91 91 92 - [http://peak.telecommunity.com/DevCenter/setuptoolssetuptools]93 - [http://peak.telecommunity.com/DevCenter/PkgResourcespkg_resources] (setuptools)94 - [http://packages.python.org/distribute/pkg_resources.html pkg_resources] (Distribute) 95 - [http://peak.telecommunity.com/DevCenter/EggFormats .egg format] 92 - [https://setuptools.readthedocs.io/en/latest/setuptools.html setuptools] 93 - [https://setuptools.readthedocs.io/en/latest/pkg_resources.html pkg_resources] (setuptools) 94 - [https://setuptools.readthedocs.io/en/latest/formats.html .egg format] 95 96 96 ---- 97 97 See also: TracDev/Proposals/Setuptools