def run(self):
    try:
        cmake3_installed = (0 == subprocess.call(['which', 'cmake3'], stdout=subprocess.PIPE, stderr=subprocess.PIPE))
        if (not cmake3_installed):
            subprocess.check_output(['cmake', '--version'])
    except OSError:
        raise RuntimeError(('CMake must be installed to build the following extensions: ' + ', '.join((e.name for e in self.extensions))))
    for ext in self.extensions:
        self.build_extension(ext)
def run(self):
    try:
        cmake3_installed = (0 == subprocess.call(['which', 'cmake3'], stdout=subprocess.PIPE, stderr=subprocess.PIPE))
        if (not cmake3_installed):
            subprocess.check_output(['cmake', '--version'])
    except OSError:
        raise RuntimeError(('CMake must be installed to build the following extensions: ' + ', '.join((e.name for e in self.extensions))))
    for ext in self.extensions:
        self.build_extension(ext)