-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add spatialindex headerfiles to package * Avoid packaging header data for sdist * Enable install.finalize_options to copy lib and include to wheel * Rewrite parts of finder to use Pathlib; add get_include() and tests --------- Co-authored-by: Mike Taves <[email protected]>
- Loading branch information
1 parent
63efe57
commit d816ef2
Showing
6 changed files
with
161 additions
and
87 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from ctypes import CDLL | ||
from pathlib import Path | ||
|
||
from rtree import finder | ||
|
||
|
||
def test_load(): | ||
lib = finder.load() | ||
assert isinstance(lib, CDLL) | ||
|
||
|
||
def test_get_include(): | ||
incl = finder.get_include() | ||
assert isinstance(incl, str) | ||
if incl: | ||
path = Path(incl) | ||
assert path.is_dir() | ||
assert (path / "spatialindex").is_dir() | ||
assert (path / "spatialindex" / "SpatialIndex.h").is_file() |