MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / run

Method run

setup.py:21–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19
20class ExtBuildPy(build_py):
21 def run(self):
22 if os.environ.get("BNB_SKIP_CMAKE", "").lower() in ("1", "true", "yes"):
23 print("skipping CMake build")
24 else:
25 # build_cmake needs to be called prior to build_py, as the latter
26 # collects the files output into the package directory.
27 try:
28 self.run_command("build_cmake")
29 except DistutilsModuleError:
30 warn(
31 "scikit-build-core not installed, CMake will not be invoked automatically. "
32 "Please install scikit-build-core or run CMake manually to build extensions."
33 )
34 super().run()
35
36
37cmdclass = {"build_py": ExtBuildPy}

Callers 3

get_rocm_gpu_archFunction · 0.80
gh_graphqlFunction · 0.80

Calls

no outgoing calls

Tested by 1