-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve how PyGMT finds the GMT library (#702)
Searches for all possible GMT library paths to load. The paths from the highest priority to the lowest priority are: 1. the path defined by `GMT_LIBRARY_PATH` 2. the path returned by command `gmt --show-library` 3. On Windows, also check the path returned by `find_library` function 4. the standard system paths * Check library names for FreeBSD * Use generator yield in clib_full_names function * Refactor test_load_libgmt_with_a_bad_library_path to use monkeypatch * Monkeypatch test to check that GMTCLibNotFoundError is raised properly * Check if the GMT shared library exists in GMT_LIBRARY_PATH Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
57 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters