CMake error during psi4-core configure step

The issue with versioner.py was identical to the one I found here: Build crash in versioner.py
I just forgot to check the default version of Python – the error was due to 2.6.

To build, I just set the environment variables
CRAYPE_LINK_TYPE=dynamic
CRAY_ADD_RPATH=yes

Without special arguments to cmake. Although I believe the flag -dynamic would work too, as mentioned here: https://bluewaters.ncsa.illinois.edu/compiling