Replace PYDIR =/usr/include/python$(PYTHON_VERSION) by PYDIR = $(shell python$(PYTHON_VERSION)-config --prefix)/include/python$(PYTHON_VERSION) This allows simulation to build on my Mac OS X setup at least. There's probably other bits there that could be replaced by calls to python2.5-config David