MCPcopy Create free account
hub / github.com/KomputeProject/kompute / run

Method run

setup.py:23–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21
22class CMakeBuild(build_ext):
23 def run(self):
24 try:
25 out = subprocess.check_output(['cmake', '--version'])
26 except OSError:
27 raise RuntimeError("CMake must be installed to build the following extensions: " +
28 ", ".join(e.name for e in self.extensions))
29
30 cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1))
31 if cmake_version < '3.15':
32 raise RuntimeError("CMake >= 3.15 is required")
33
34 for ext in self.extensions:
35 self.build_extension(ext)
36
37 def build_extension(self, ext):
38 extdir = os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name)))

Callers

nothing calls this directly

Calls 1

build_extensionMethod · 0.95

Tested by

no test coverage detected