[Numpy-svn] r4248 - branches/numpy.scons/numpy/core

numpy-svn@scip... numpy-svn@scip...
Thu Oct 18 20:31:55 CDT 2007


Author: cdavid
Date: 2007-10-18 20:31:51 -0500 (Thu, 18 Oct 2007)
New Revision: 4248

Modified:
   branches/numpy.scons/numpy/core/SConstruct
Log:
Add blasdot include path

Modified: branches/numpy.scons/numpy/core/SConstruct
===================================================================
--- branches/numpy.scons/numpy/core/SConstruct	2007-10-19 01:10:52 UTC (rev 4247)
+++ branches/numpy.scons/numpy/core/SConstruct	2007-10-19 01:31:51 UTC (rev 4248)
@@ -1,4 +1,4 @@
-# Last Change: Fri Oct 19 08:00 AM 2007 J
+# Last Change: Fri Oct 19 10:00 AM 2007 J
 # vim:syntax=python
 import os
 import sys
@@ -172,6 +172,9 @@
 #------------------------
 # Generate generated code
 #------------------------
+# XXX: the use of env['build_dir'] and env['src_dir'] are really ugly. Will
+# have to think about how removing them (using hierarchical scons and dir
+# option ?)
 from os.path import join as pjoin
 
 config_header = env.GenerateConfigHeader(pjoin(env['build_dir'], 'config.h'), [])
@@ -239,4 +242,6 @@
 # Build _dotblas module
 #----------------------
 dotblas_src = [pjoin('blasdot', i) for i in ['_dotblas.c']]
-dotblas = env.NumpyPythonExtension('_dotblas', source = dotblas_src)
+blasenv = env.Copy()
+blasenv.Append(CPPPATH = pjoin(env['src_dir'], 'blasdot'))
+dotblas = blasenv.NumpyPythonExtension('_dotblas', source = dotblas_src)



More information about the Numpy-svn mailing list