Initialize an ArrowSources The caller must ensure that path is valid arrow source directory (can be checked with ArrowSources.valid) Parameters ---------- path : src
(self, path)
| 51 | WORKSPACE = "WORKSPACE" |
| 52 | |
| 53 | def __init__(self, path): |
| 54 | """ Initialize an ArrowSources |
| 55 | |
| 56 | The caller must ensure that path is valid arrow source directory (can |
| 57 | be checked with ArrowSources.valid) |
| 58 | |
| 59 | Parameters |
| 60 | ---------- |
| 61 | path : src |
| 62 | """ |
| 63 | path = Path(path) |
| 64 | # validate by checking a specific path in the arrow source tree |
| 65 | if not (path / 'cpp' / 'CMakeLists.txt').exists(): |
| 66 | raise InvalidArrowSource( |
| 67 | f"No Arrow C++ sources found in {path}." |
| 68 | ) |
| 69 | self.path = path |
| 70 | |
| 71 | @property |
| 72 | def archery(self): |
nothing calls this directly
no test coverage detected