in setup.py [0:0]
def run(self):
try:
subprocess.check_call("cd pachi_py; mkdir -p build && cd build && cmake ../pachi && make -j4", shell=True)
except subprocess.CalledProcessError as e:
print("Could not build pachi-py: %s" % e)
raise
# Prevent numpy from trying to setup
__builtins__.__NUMPY_SETUP__ = False
import numpy
self.include_dirs.append(numpy.get_include())
_build_ext.run(self)