[go: up one dir, main page]

File: INSTALL

package info (click to toggle)
txtorcon 18.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,672 kB
  • sloc: python: 17,521; makefile: 227
file content (40 lines) | stat: -rw-r--r-- 1,166 bytes parent folder | download | duplicates (3)
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
35
36
37
38
39
40

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-ipaddress graphviz

   python setup.py install

It's recommended to use a virtualenv (see below), but on OSX (and
assuming homebrew is installed):

   brew install geoip
   pip install -r requirements.txt
   pip install -r dev-requirements.txt

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 ipaddress 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"