MCPcopy Index your code
hub / github.com/python/cpython / get_build_paths

Function get_build_paths

Platforms/emscripten/__main__.py:56–73  ·  view source on GitHub ↗

Compute all build paths from the given cross-build directory.

(cross_build_dir=None, emsdk_cache=None)

Source from the content-addressed store, hash-verified

54
55
56def get_build_paths(cross_build_dir=None, emsdk_cache=None):
57 """Compute all build paths from the given cross-build directory."""
58 if cross_build_dir is None:
59 cross_build_dir = DEFAULT_CROSS_BUILD_DIR
60 cross_build_dir = Path(cross_build_dir).absolute()
61 host_triple_dir = cross_build_dir / HOST_TRIPLE
62 prefix_dir = host_triple_dir / "prefix"
63 if emsdk_cache:
64 prefix_dir = emsdk_cache_root(emsdk_cache) / "prefix"
65
66 return {
67 "cross_build_dir": cross_build_dir,
68 "native_build_dir": cross_build_dir / "build",
69 "host_triple_dir": host_triple_dir,
70 "host_build_dir": host_triple_dir / "build",
71 "host_dir": host_triple_dir / "build" / "python",
72 "prefix_dir": prefix_dir,
73 }
74
75
76LOCAL_SETUP = CHECKOUT / "Modules" / "Setup.local"

Callers 1

mainFunction · 0.85

Calls 3

PathClass · 0.90
emsdk_cache_rootFunction · 0.85
absoluteMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…