MCPcopy Create free account
hub / github.com/pybind/pybind11 / print_includes

Function print_includes

pybind11/__main__.py:36–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35
36def print_includes() -> None:
37 dirs = [
38 sysconfig.get_path("include"),
39 sysconfig.get_path("platinclude"),
40 get_include(),
41 ]
42
43 # Make unique but preserve order
44 unique_dirs = []
45 for d in dirs:
46 if d and d not in unique_dirs:
47 unique_dirs.append(d)
48
49 print(" ".join(quote(f"-I{d}") for d in unique_dirs))
50
51
52def main() -> None:

Callers 1

mainFunction · 0.85

Calls 5

get_includeFunction · 0.85
printFunction · 0.85
quoteFunction · 0.85
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected