[Numpy-svn] r5365 - in trunk/numpy: fft lib linalg numarray random

numpy-svn@scip... numpy-svn@scip...
Wed Jul 9 01:02:00 CDT 2008


Author: cdavid
Date: 2008-07-09 01:01:49 -0500 (Wed, 09 Jul 2008)
New Revision: 5365

Modified:
   trunk/numpy/fft/SConscript
   trunk/numpy/lib/SConscript
   trunk/numpy/linalg/SConscript
   trunk/numpy/numarray/SConscript
   trunk/numpy/random/SConscript
Log:
Use NumpyPythonExtension instead of DistutilsPythonExtension where possible.

Modified: trunk/numpy/fft/SConscript
===================================================================
--- trunk/numpy/fft/SConscript	2008-07-09 01:56:22 UTC (rev 5364)
+++ trunk/numpy/fft/SConscript	2008-07-09 06:01:49 UTC (rev 5365)
@@ -1,10 +1,9 @@
 # Last Change: Thu Jun 12 06:00 PM 2008 J
 # vim:syntax=python
-from numscons import GetNumpyEnvironment, scons_get_paths
+from numscons import GetNumpyEnvironment
 
 env = GetNumpyEnvironment(ARGUMENTS)
-env.Append(CPPPATH = scons_get_paths(env['include_bootstrap']))
 
-fftpack_lite = env.DistutilsPythonExtension('fftpack_lite', 
+fftpack_lite = env.NumpyPythonExtension('fftpack_lite', 
                                         source = ['fftpack_litemodule.c', 
                                                   'fftpack.c'])

Modified: trunk/numpy/lib/SConscript
===================================================================
--- trunk/numpy/lib/SConscript	2008-07-09 01:56:22 UTC (rev 5364)
+++ trunk/numpy/lib/SConscript	2008-07-09 06:01:49 UTC (rev 5365)
@@ -1,9 +1,7 @@
 # Last Change: Thu Jun 12 06:00 PM 2008 J
 # vim:syntax=python
-from numscons import GetNumpyEnvironment, scons_get_paths
+from numscons import GetNumpyEnvironment
 
 env = GetNumpyEnvironment(ARGUMENTS)
-env.Append(CPPPATH = scons_get_paths(env['include_bootstrap']))
-
-_compiled_base = env.DistutilsPythonExtension('_compiled_base', 
+_compiled_base = env.NumpyPythonExtension('_compiled_base', 
                                         source = ['src/_compiled_base.c'])

Modified: trunk/numpy/linalg/SConscript
===================================================================
--- trunk/numpy/linalg/SConscript	2008-07-09 01:56:22 UTC (rev 5364)
+++ trunk/numpy/linalg/SConscript	2008-07-09 06:01:49 UTC (rev 5365)
@@ -2,13 +2,12 @@
 # vim:syntax=python
 import os.path
 
-from numscons import GetNumpyEnvironment, scons_get_paths, \
+from numscons import GetNumpyEnvironment, \
                      scons_get_mathlib
 from numscons import CheckF77LAPACK
 from numscons import write_info
 
 env = GetNumpyEnvironment(ARGUMENTS)
-env.Append(CPPPATH = scons_get_paths(env['include_bootstrap']))
 
 config = env.NumpyConfigure(custom_tests = 
     {'CheckLAPACK' : CheckF77LAPACK})
@@ -25,5 +24,5 @@
 if not use_lapack:
     sources.extend(['python_xerbla.c', 'zlapack_lite.c', 'dlapack_lite.c',
                     'blas_lite.c', 'dlamch.c', 'f2c_lite.c'])
-lapack_lite = env.DistutilsPythonExtension('lapack_lite', source = sources)
+lapack_lite = env.NumpyPythonExtension('lapack_lite', source = sources)
             

Modified: trunk/numpy/numarray/SConscript
===================================================================
--- trunk/numpy/numarray/SConscript	2008-07-09 01:56:22 UTC (rev 5364)
+++ trunk/numpy/numarray/SConscript	2008-07-09 06:01:49 UTC (rev 5365)
@@ -1,9 +1,8 @@
 # Last Change: Thu Jun 12 06:00 PM 2008 J
 # vim:syntax=python
-from numscons import GetNumpyEnvironment, scons_get_paths
+from numscons import GetNumpyEnvironment
 
 env = GetNumpyEnvironment(ARGUMENTS)
-env.Append(CPPPATH = scons_get_paths(env['include_bootstrap']))
 env.Append(CPPPATH = ['numpy'])
 
-_capi = env.DistutilsPythonExtension('_capi', source = ['_capi.c'])
+_capi = env.NumpyPythonExtension('_capi', source = ['_capi.c'])

Modified: trunk/numpy/random/SConscript
===================================================================
--- trunk/numpy/random/SConscript	2008-07-09 01:56:22 UTC (rev 5364)
+++ trunk/numpy/random/SConscript	2008-07-09 06:01:49 UTC (rev 5365)
@@ -2,8 +2,7 @@
 # vim:syntax=python
 import os
 
-from numscons import GetNumpyEnvironment, scons_get_paths, \
-                                  scons_get_mathlib
+from numscons import GetNumpyEnvironment, scons_get_mathlib
 
 def CheckWincrypt(context):
     from copy import deepcopy
@@ -28,7 +27,6 @@
     return st[0]
     
 env = GetNumpyEnvironment(ARGUMENTS)
-env.Append(CPPPATH = scons_get_paths(env['include_bootstrap']))
 
 mlib = scons_get_mathlib(env)
 env.AppendUnique(LIBS = mlib)
@@ -43,4 +41,4 @@
            ['mtrand.c', 'randomkit.c', 'initarray.c', 'distributions.c']]
 
 # XXX: Pyrex dependency
-mtrand = env.DistutilsPythonExtension('mtrand', source = sources)
+mtrand = env.NumpyPythonExtension('mtrand', source = sources)



More information about the Numpy-svn mailing list