Debian Codegraph @

docs/source/install.rst

raw
1 .. _installation:
2
3 Installation
4 ------------------------------------------------------------------------------
5
6 \*nix
7 ..............................................................................
8
9 First, download and install version 1.8.5+ of the `libspatialindex`_ library from:
10
11 https://libspatialindex.org
12
13 The library supports CMake builds, so it is a matter of:
14
15 .. code-block:: console
16
17 $ mkdir build && cd build
18 $ cmake ..
19 $ cmake --build . -j
20 $ cmake --install .
21
22 You may need to run the ``ldconfig`` command after installing the library to
23 ensure that applications can find it at startup time.
24
25 Rtree can be easily installed via pip:
26
27 .. code-block:: console
28
29 $ pip install rtree
30
31 or by running in a local source directory:
32
33 .. code-block:: console
34
35 $ pip install -e .
36
37 You can build and test in place like:
38
39 .. code-block:: console
40
41 $ pytest
42
43 Windows
44 ..............................................................................
45
46 The Windows DLLs of `libspatialindex`_ are pre-compiled in
47 windows installers that are available from `PyPI`_. Installation on Windows
48 is as easy as:
49
50 .. code-block:: console
51
52 $ pip install rtree
53
54
55 .. _`PyPI`: https://pypi.org/project/rtree/
56 .. _`libspatialindex`: https://libspatialindex.org