You’re running out of RAM during the compilation 
You might want to reduce the number of threads that it can use to reduce the memory usage by setting MAX_JOBS=2 as an env variable before calling the setup.py script. Note that this will slow down the compilation quite a lot.