Make sure it is also the case for you before performing the steps described below.īrew stands for homebrew. Importrant: my python version is built for the x86_64 architecture.
usr/local/bin/python: Mach-O 64-bit executable x86_64 It is possible, however, to build pycairo using the x86_64 architecture. I guess, you could rebuild python as a universal binary, I haven't tried that. It fails to do so, because my python is built for the x86_64 architecture. The waf script tries to build a simple source file with CPython calls in it using i386 architecture. After python waf configure failed to find Python.h, I looked through the config.log file located in build_directory and found out that the true cause of failure was incompatible architecture. I think waf is seriously broken for Mac OS X :(