Debian Codegraph @

doc/source/dev/installing_build_dependencies.rst

raw
1 .. _dev-installing-build-dependencies:
2
3 Installing build dependencies
4 =============================
5
6 Setting up Python virtual environment
7 -------------------------------------
8
9 A good practice is to create a separate Python virtual environment for each
10 project. If you don't have `virtualenv`_ yet, install and activate it using::
11
12 curl -O https://raw.github.com/pypa/virtualenv/master/virtualenv.py
13 python virtualenv.py <name_of_the_venv>
14 . <name_of_the_venv>/bin/activate
15
16
17 Installing Cython
18 -----------------
19
20 Use ``pip`` (http://pypi.python.org/pypi/pip) to install Cython_::
21
22
23 pip install Cython
24
25
26 Installing numpy
27 ----------------
28
29 Use ``pip`` to install numpy_::
30
31 pip install numpy
32
33 Numpy can also be obtained via scientific python distributions such as:
34
35 - Anaconda_
36 - `Enthought Canopy`_
37 - `Python(x,y) <http://python-xy.github.io/>`_
38
39 .. note::
40
41 You can find binaries for 64-bit Windows on http://www.lfd.uci.edu/~gohlke/pythonlibs/.
42
43
44 Installing Sphinx
45 -----------------
46
47 Sphinx_ is a documentation tool that converts reStructuredText files into
48 nicely looking html documentation. Install it with::
49
50 pip install Sphinx
51
52 numpydoc_ is used to format the API docmentation appropriately. Install it
53 via::
54
55 pip install numpydoc
56
57
58 .. _virtualenv: http://pypi.python.org/pypi/virtualenv
59 .. _numpy: http://numpy.org/
60 .. _Cython: http://cython.org/
61 .. _Sphinx: http://sphinx.pocoo.org
62 .. _numpydoc: https://github.com/numpy/numpydoc
63 .. _Anaconda: https://www.continuum.io/downloads
64 .. _Enthought Canopy: https://www.enthought.com/products/canopy/