forked from meejah/txtorcon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
34 lines (21 loc) · 991 Bytes
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
See README for more information.
To just install this as quickly as possible, using a Debian or Ubuntu
system, run the following as root:
apt-get install python-setuptools python-twisted python-ipaddr python-geoip python-psutil graphviz
python setup.py install
Or, instead of installing locally, simply:
export PYTHONPATH=.
If you want to take slightly more time, but only install temporarily,
use virtualenv:
apt-get install python-setuptools python-pip
python setup.py build
mkdir tmp
virtualenv --never-download --extra-search-dir=/usr/lib/python2.7/dist-packages/ tmp/txtorcon_env
cd tmp/txtorcon_env
source bin/activate
pip install Twisted ipaddr pygeoip # this will download from internets:
export PYTHONPATH=../../build/lib.linux-x86_64-2.7/
(Or you can type "make virtualenv" which creates tmp/txtorcon_env, up
to the "activate" step above)
Now, this should work (where "work" means "prints nothing"):
python -c "import txtorcon"