From d7aca956ebe150b44b5d745d8a80651bcbaa4d77 Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Fri, 19 Jan 2024 22:44:03 +1300 Subject: [PATCH] Revise install docs --- docs/source/install.rst | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/docs/source/install.rst b/docs/source/install.rst index eb87c5dd..4f482397 100644 --- a/docs/source/install.rst +++ b/docs/source/install.rst @@ -8,26 +8,29 @@ Installation First, download and install version 1.8.5+ of the `libspatialindex`_ library from: -https://libspatialindex.org/ +https://libspatialindex.org -The library is a GNU-style build, so it is a matter of:: +The library support CMake, so it is a matter of:: - $ ./configure; make; make install + $ mkdir build && cd build + $ cmake .. + $ cmake --build . -j + $ cmake cmake --install . You may need to run the ``ldconfig`` command after installing the library to ensure that applications can find it at startup time. -At this point you can get Rtree 0.7.0 via easy_install:: +Rtree can be easily installed via pip:: - $ easy_install Rtree + $ pip install Rtree -or by running the local setup.py:: +or by running in a local source directory:: - $ python setup.py install + $ pip install -e . You can build and test in place like:: - $ python setup.py test + $ pytest Windows .............................................................................. @@ -36,7 +39,7 @@ The Windows DLLs of `libspatialindex`_ are pre-compiled in windows installers that are available from `PyPI`_. Installation on Windows is as easy as:: - c:\python2x\scripts\easy_install.exe Rtree + pip install Rtree .. _`PyPI`: https://pypi.org/project/Rtree/