This book is about CMake, but some of the recipes, along with the whole infrastructure powering testing, need Python. Thus, first and foremost, you will need a working installation of Python: the interpreter, header files, and libraries. The end of life for Python 2.7 was announced for 2020, and we will thus use Python 3.5.
On Ubuntu 14.04 LTS (this is the environment used by Travis CI which we will discuss later on), Python 3.5 can be installed as follows:
$ sudo apt-get install python3.5-dev
On Windows, using the MSYS2 environment, the Python environment can be installed as follows (assuming the 64-bit version):
$ pacman -S mingw64/mingw-w64-x86_64-python3$ pacman -S mingw64/mingw-w64-x86_64-python3-pip$ python3 -m pip install pipenv ...