only link against geos C API on non-windows platforms #140
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently trying to build basemap on Debian Linux using the system wide global GEOS installation fails (installed via aptitude, see https://packages.debian.org/search?keywords=libgeos&searchon=names&suite=stable§ion=all).
This is due to basemap trying to link against the C++ library and looking for a file
/usr/lib/libgeos.so
while GEOS only provides/usr/lib/libgeos-3.3.3.so
. I reported this circumstance to the Debian package maintainer and he replied that it is bad practice to link against the C++ library (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741242). Following his reply I removed'geos'
from the library list and basemap builds OK and also the normal plotting seems to work fine.For Debian Linux this PR makes basemap install like a charm simply using
pip install basemap
(with the respective options to allow files not directly hosted on pypi), removing the need to download the source code and manually compiling the GEOS library included in the source.I am not sure if this creates problems in other parts of basemap, though...?