MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / run

Method run

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

Source from the content-addressed store, hash-verified

33
34class CMakeBuild(build_ext):
35 def run(self):
36 try:
37 out = subprocess.check_output(['cmake', '--version'])
38 except OSError:
39 raise RuntimeError("CMake must be installed to build the following extensions: " +
40 ", ".join(e.name for e in self.extensions))
41
42 if platform.system() == "Windows":
43 cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1))
44 if cmake_version < '3.1.0':
45 raise RuntimeError("CMake >= 3.1.0 is required on Windows")
46
47 for ext in self.extensions:
48 self.build_extension(ext)
49
50 def build_extension(self, ext):
51 extdir = os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name)))

Callers

nothing calls this directly

Calls 2

build_extensionMethod · 0.95
decodeMethod · 0.80

Tested by

no test coverage detected