MCPcopy Create free account
hub / github.com/Tencent/MMKV / run

Method run

Python/setup.py:22–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20
21class CMakeBuild(build_ext):
22 def run(self):
23 try:
24 out = subprocess.check_output(['cmake', '--version'])
25 except OSError:
26 raise RuntimeError("CMake must be installed to build the following extensions: " +
27 ", ".join(e.name for e in self.extensions))
28
29 if platform.system() == "Windows":
30 cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1))
31 if cmake_version < '3.1.0':
32 raise RuntimeError("CMake >= 3.1.0 is required on Windows")
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 1

formatCode.pyFile · 0.45

Calls 1

build_extensionMethod · 0.95

Tested by

no test coverage detected