wiki:WindowsBuild

Version 4 (modified by ndurner, at 2009-02-27T21:39:32Z) (diff)

--

Content

Building from a tarball
Building darcs trunk
Running as different user

Building from a tarball

  1. Install Python 2.5 (http://python.org/download/releases/2.5.4/)
  1. Add the Python to the search path (rough translation from German Windows 2000):

Start -> Settings -> System control -> System -> Enhanced -> Environment variables -> System variables: add ";C:\Python25;C:\Python25\Scripts;" to the "Path" entry

  1. Install win32api for Python 2.5 (http://sourceforge.net/project/showfiles.php?group_id=78018)

Note: Build 213 does not work on Windows 2000, Build 212 does.

  1. Open the command line interpreter (command/cmd), cd to the tahoe directory and build it:

python setup.py build

Building darcs trunk

  1. Install Python 2.5 (http://python.org/download/releases/2.5.4/)
  1. Install Darcs (http://wiki.darcs.net/DarcsWiki/Binaries, "Windows without Cygwin")
  1. Add the Python and Darcs to the search path (rough translation from German Windows 2000):

Start -> Settings -> System control -> System -> Enhanced -> Environment variables -> System variables: add ";C:\Python25;C:\Python25\Scripts;C:\darcs-2.2.1-win1" to the "Path" entry

  1. Install win32api for Python 2.5 (http://sourceforge.net/project/showfiles.php?group_id=78018)

Note: Build 213 does not work on Windows 2000, Build 212 does.

  1. Install Setuptools (http://pypi.python.org/pypi/setuptools, Windows Installer for Python 2.5)
  1. Download darcsver 1.2.1 from

http://pypi.python.org/pypi/darcsver/1.2.1

  1. Download Twisted, setuptools_darcs and setuptools_trial from

http://testgrid.allmydata.org:3567/uri/URI:DIR2-RO:snrfwfxatrci35zdgjnzxxx2ke:unarxv347edtku3xzmefy4mcdmfngxzeb72iyqcadbjzjpczjx5a/index.html

  1. Open the command line interpreter (cmd/command)
  1. cd to your download directory
  1. Run

easy_install Twisted-8.2.0-py2.5-win32.egg

  1. Decompress setuptools_darcs and setuptools_trial, cd into each directory and run

python setup.py install

  1. Get Tahoe from Darcs:

darcs get --lazy http://allmydata.org/source/tahoe/trunk-hashedformat tahoe

  1. cd to tahoe and build Tahoe:

python setup.py build

  1. Optional: run testcases:

python setup.py test

Summary on 2009-23-02 on Windows 2000:

Ran 558 tests in 1281.032s

FAILED (skips=8, expectedFailures=4, errors=1, unexpectedSuccesses=6, successes=
539)

Running as different user

  1. Create the new user account
  1. Run tahoe through "runas":
    runas /user:Computer\Tahoeuser "bin\tahoe.exe start C:\tahoe-basedir"
    
  1. Adjust file system permissions as needed and possible (Home Editions of Windows lack user interfaces to modify permissions)