Author: bugman Date: Thu Apr 24 16:41:54 2008 New Revision: 5975 URL: http://svn.gna.org/viewcvs/relax?rev=5975&view=rev Log: Fixed the C module compilation by adding numpy.get_include() to the list of C include flags. Modified: 1.3/sconstruct Modified: 1.3/sconstruct URL: http://svn.gna.org/viewcvs/relax/1.3/sconstruct?rev=5975&r1=5974&r2=5975&view=diff ============================================================================== --- 1.3/sconstruct (original) +++ 1.3/sconstruct Thu Apr 24 16:41:54 2008 @@ -26,8 +26,9 @@ # Import statements. +from numpy import get_include +from os import getcwd, path, remove, sep, walk import platform -from os import getcwd, path, remove, sep, walk from re import search import sys @@ -470,11 +471,14 @@ py_include_minpath = sys.prefix + path.sep + 'include' py_include_fullpath = py_include_minpath + path.sep + 'python' + `sys.version_info[0]` + '.' + `sys.version_info[1]` + # Get the numpy include path (for numpy/arrayobject.h). + numpy_path = get_include() + # C flags. if SYSTEM == 'Windows': - cflags = '/nologo /I\"' + py_include_minpath + '\"' + cflags = '/nologo /I\"' + py_include_minpath + '\" /I\"' + numpy_path + '\"' else: - cflags = '-I' + py_include_fullpath + cflags = '-I' + py_include_fullpath + ' -I' + numpy_path # Relaxation curve fitting build environment. env = Environment()