I've been helping a few folks out on IRC lately. They've wanted to know how to setup Twisted and Divmod without doing any installs, running directly from SVN. They've been in luck, because that's actually how we develop at Divmod :-)
Here are the Cliff Notes (this stuff is available on the wikis, but it's spread out):
Install the dependencies:
Update: the instructions have been edited and shortened, thanks to insight from Glyph.
Here are the Cliff Notes (this stuff is available on the wikis, but it's spread out):
Install the dependencies:
pycrypto 2.0Get the Divmod code first (we'll get Twisted next):
SQLite 3.2.1
PySQLite 2.0
PyTZ 2005m-1
PIL 1.1.6
mkdir ~/labSet the Combinator env vars (if you want to persist this, then you'll need to put it in your .profile or shell .rc file):
cd ~/lab
svn co http://divmod.org/svn/Divmod/trunk Divmod/trunk
eval `python ~/lab/Divmod/trunk/Combinator/environment.py`Have Combinator start "tracking" Divmod and Twisted, thus managing PYTHONPATH for them (note that chbranch will detect that Twisted has not been checked out and will do so automatically):
chbranch Divmod trunkGet the new project dirs into the env:
chbranch Twisted trunk svn://svn.twistedmatrix.com/svn/Twisted/trunk
eval `python ~/lab/Divmod/trunk/Combinator/environment.py`Executing the whbranch command should give you the following:
Divmod: trunkIf you start up a Python interpreter, you'll be able to import from twisted, mantissa, axiom, etc.
Twisted: trunk
Update: the instructions have been edited and shortened, thanks to insight from Glyph.
0 comments:
Post a Comment