@@ -11,43 +11,9 @@ on PyPI and can be installed with [`pip`]:
1111python -m pip install basemap
1212```
1313
14- Otherwise, you will need to install ` basemap ` from its source hosted
15- on GitHub as indicated in the following steps:
16-
17- 1 . Install pre-requisite Python modules:
18- - [ cython] ( https://github.com/cython/cython )
19- - [ numpy] ( https://github.com/numpy/numpy )
20-
21- 2 . Download the ` basemap ` source code:
22- ``` sh
23- git clone --depth 1 https://github.com/matplotlib/basemap.git
24- ```
25-
26- 3 . Build the [ GEOS] ( https://github.com/libgeos/geos ) library. You may
27- use the helper provided in ` utils ` , (please note that you need
28- [ ` CMake ` ] ( https://cmake.org/ ) and a working C compiler in advance):
29- ``` sh
30- export GEOS_DIR=< your desired location>
31- python -c " import utils; utils.GeosLibrary('3.6.5').build(installdir='${GEOS_DIR} ')"
32- ```
33- or you can link directly to the system library if it is already
34- installed. ` GEOS_DIR ` must point to the GEOS installation prefix;
35- e.g. if ` libgeos_c.so ` is located in ` /usr/lib ` and ` geos_c.h ` is
36- located in ` /usr/include ` , then you must set ` GEOS_DIR ` to ` /usr ` .
37-
38- 4 . Build and install the ` basemap ` binary wheel:
39- ``` sh
40- python -m pip install .
41- ```
42- On Linux, if your Python was installed through a package management
43- system, make sure that you have the Python header ` Python.h ` required
44- to build Cython extensions (e.g. on Debian-like systems, you should
45- have the package ` python-dev ` installed).
46-
47- 5 . Check that the package was installed correctly by executing:
48- ``` sh
49- python -c " from mpl_toolkits.basemap import Basemap"
50- ```
14+ For specific details on how to install ` basemap ` through ` conda ` or
15+ from source, please refer to the [ ` basemap ` installation instructions]
16+ in the documentation.
5117
5218## Requirements
5319
@@ -118,6 +84,9 @@ https://pypi.org/project/basemap-data-hires
11884[ ` OWSLib ` ] :
11985https://pypi.org/project/OWSLib
12086
87+ [ ` basemap ` installation instructions] :
88+ https://matplotlib.org/basemap/stable/users/installation.html
89+
12190[ MIT] :
12291https://spdx.org/licenses/MIT.html
12392[ LGPL-2.1-only] :
0 commit comments