MCPcopy Create free account
hub / github.com/ByteDance-Seed/Triton-distributed / get_pybind11_cmake_args

Method get_pybind11_cmake_args

python/setup.py:641–647  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

639 self.extensions = all_extensions
640
641 def get_pybind11_cmake_args(self):
642 pybind11_sys_path = get_env_with_keys(["PYBIND11_SYSPATH"])
643 if pybind11_sys_path:
644 pybind11_include_dir = os.path.join(pybind11_sys_path, "include")
645 else:
646 pybind11_include_dir = pybind11.get_include()
647 return [f"-Dpybind11_INCLUDE_DIR='{pybind11_include_dir}'", f"-Dpybind11_DIR='{pybind11.get_cmake_dir()}'"]
648
649 def get_proton_cmake_args(self):
650 cmake_args = get_thirdparty_packages([get_json_package_info()])

Callers 4

build_pymaca_projectMethod · 0.95
get_proton_cmake_argsMethod · 0.95
build_extension_cmakeMethod · 0.95

Calls 1

get_env_with_keysFunction · 0.85

Tested by

no test coverage detected