Installing Cwm
Prerequisites
- Python. Currently
(2003/2) cwm needs Python2.2 or later. Python comes with many systems. If
you don't have it,
On debian type apt-get install python if you don't have
it.
Mac OSX comes with it on or after 10.2. On earlier, get fink then type
fink
install python.
On cygwin, select python in the
setup.exe installer..
- If you are reading things in RDF/XML format, you will need the
pyxml python extension. If you don't have it, Under
debian, type
apt-get install pyxml. Otherwise, untar it and
in the right directory type python setup.py install. Under cygwin, select
it in the the cygwin setup.exe.
- If you are using the public key cryptography builtins, you will need
the crypto, originally amkCrypto python extension.
Hopefully the necessary functionality will be in pycrypto soon (next
release later than 2002/05). One version had a print statement in
number.py#inverse --the print statement needs to be removed. Edit
directory names appropriately in setup.py then run
python setup.py
install. Necessary changes for OSX:
You can do all this under MSWindows but the easiest thing is to
install cygwin (a unix-like environment for Windows) and run everything in
there.
Download
The python source files are available as a compressed tar file
Get that, unwrap it in some suitable directory.
Set up an alias (.bat file, etc) to make the cwm command. In bash this
is:
cwm="python /whereverYouPutThem/cwm.py"
You should be all set.
Source
This swap code is not
guaranteed but is open source and available if you want to play.
- Using CVS
- from the public w3c CVS
repository. Check out the whole tree to develop. This includes the
test data - if you don't need that, delete the test subdirectory. Make
a fresh directory where you want to put stuff from dev.w3.org.
$ cvs -d:pserver:anonymous@dev.w3.org:/sources/public login
password? anonymous
$ cvs -d:pserver:anonymous@dev.w3.org:/sources/public get 2000/10/swap
- From the web
- Get the files one by one. cwm.py
is the main application file. You can browse the source files on the
web, but this is not a practical way to install the
system.
Tim BL, with his director hat off
$Id: CwmInstall.html,v 1.7 2004/12/16 17:24:38 syosi Exp $