Creating a Trac Project Environment: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Overview== How to set up a new [http://trac.edgewall.org/ Trac] project environment on Windows using a [http://www.sqlite.org/ SQLite] database. ==Creating a project enviro...") |
No edit summary |
||
| Line 1: | Line 1: | ||
==Overview== | ==Overview== | ||
How to set up a new [http://trac.edgewall.org/ Trac] project environment on Windows using a [http://www.sqlite.org/ SQLite] database. | How to set up a new [http://trac.edgewall.org/ Trac] project environment on Windows using a [http://www.sqlite.org/ SQLite] database. | ||
==Prerequisites== | |||
* Python | |||
** The Windows installation of Python doesn't update the "path" environment variable. It's necessary to do that manually to include the path to the python executable. | |||
** Same is true for Trac. By default the trac libraries are installed in <code>[PYTHON_INSTALL_DIR]\Lib\site-packages\</code>. The <code>trac-admin</code> executable is located in <code>c:\python27\scripts\</code> (where <code>c:\phython27\</code> is the installation directory for Python). | |||
* Python [http://pypi.python.org/pypi/setuptools#files setuptools] | |||
* [http://genshi.edgewall.org/wiki/Download Genshi] | |||
* And of course, Trac. Which for now requires Python 2.7 (even though Python 3.x exists).<br />It looks like it's possible to run multiple python environments? | |||
==Creating a project environment== | ==Creating a project environment== | ||
Revision as of 17:49, 2 December 2012
Overview
How to set up a new Trac project environment on Windows using a SQLite database.
Prerequisites
- Python
- The Windows installation of Python doesn't update the "path" environment variable. It's necessary to do that manually to include the path to the python executable.
- Same is true for Trac. By default the trac libraries are installed in
[PYTHON_INSTALL_DIR]\Lib\site-packages\. Thetrac-adminexecutable is located inc:\python27\scripts\(wherec:\phython27\is the installation directory for Python).
- Python setuptools
- Genshi
- And of course, Trac. Which for now requires Python 2.7 (even though Python 3.x exists).
It looks like it's possible to run multiple python environments?
Creating a project environment
Database
- Create a new SQLite database.
sqlite3 /develop/trac-projectname.db