1. trac-bzr setup

    Not so easy on a shared host:

    First, get bazaar. Because we have no gcc ability, we need to set up a config file to change some values in. First create ~/.pydistutils.cfg. You need to add the lines:

    [build_ext]
    allow-python-fallback=1

    This now allows us to build bazaar:

    easy_install --prefix=~ bzr

    With Bazaar installed fetch the latest version of trac-bzr:

    bzr branch lp:trac-bzr

    You then need to set it up. Navigate to the trac-bzr folder and run:

    python setup.py install --prefix=~

    Once installed, you need to add/change some lines in your trac.ini file.

    Add
    tracbzr.* = enabled

    To the components section and

    Change
    repository_dir = /your/repository/location
    repository_type = bzr

    Once that is complete, you need to get the stuff into your repository. First run bzr repo-init and then change to your working repository and run bzr push sftp:/location/of/repo.

  2. 64bit, virtual-python.py and anoyances caused

    Host broke, gave us a new server. This however was 64bit and broke Trac. To get it working again:

    • Modify the virtual-python file line
    stdlib_dir = join(prefix, 'lib', py_version)

    to

    stdlib_dir = join(prefix, 'lib64', py_version)

    and run.

    • Then re-follow the first few steps in guide on installing Trac, up to and including the easy_install of Trac, found here
    • Now rename the library in the home folder from lib to lib64

    All should now be working!