def __str__(self): import numpy as np return np.get_include() # As of Python 3.6, CCompiler has a `has_flag` method. # cf http://bugs.python.org/issue26689