To build the Gnucap Python extension you might to build a recent version of gnucap. You can see a list of recent versions with:
git tag -l
git checkout 20171003
And repeat the build cycle from Chapter 1.
The Python extension is based on SWIG and the autotools build system
To build and use the Gnucap module, you should install a at least the numpy package with development headers. In Linux you can simply put a link to these headers in the /usr/include folder as follows:
# cd /usr/local/include && ln -sf /usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy .
Also you might want to install matplotlib package to plot simulation results.