Install CMake. Move common functionality to bootstrap.py.