MCPcopy Create free account
hub / github.com/apache/arrow / __init__

Method __init__

dev/archery/archery/utils/source.py:53–69  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

InvalidArrowSourceClass · 0.85
PathFunction · 0.50

Tested by

no test coverage detected