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

Method run

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

Source from the content-addressed store, hash-verified

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