[Scipy-svn] r4861 - in branches/refactor_fft/scipy/fftpack: . fftpack

scipy-svn@scip... scipy-svn@scip...
Tue Oct 28 00:33:14 CDT 2008


Author: cdavid
Date: 2008-10-28 00:33:09 -0500 (Tue, 28 Oct 2008)
New Revision: 4861

Modified:
   branches/refactor_fft/scipy/fftpack/fftpack/SConscript
   branches/refactor_fft/scipy/fftpack/setupscons.py
Log:
Update fftpack backend numscons build.

Modified: branches/refactor_fft/scipy/fftpack/fftpack/SConscript
===================================================================
--- branches/refactor_fft/scipy/fftpack/fftpack/SConscript	2008-10-28 05:24:55 UTC (rev 4860)
+++ branches/refactor_fft/scipy/fftpack/fftpack/SConscript	2008-10-28 05:33:09 UTC (rev 4861)
@@ -7,11 +7,11 @@
 from numscons import CheckF77Clib
 
 env = GetNumpyEnvironment(ARGUMENTS)
-env.Tool('numpyf2py')
+env.Tool('f2py')
 
-env.AppendUnique(CPPPATH = get_numpy_include_dirs())
-env.AppendUnique(CPPPATH = env['F2PYINCLUDEDIR'])
-env.AppendUnique(CPPPATH = [pjoin(env['build_dir'], "src")])
+env.AppendUnique(CPPPATH = ['src'])
+# env.AppendUnique(CPPPATH = get_numpy_include_dirs())
+# env.AppendUnique(CPPPATH = env['F2PYINCLUDEDIR'])
 
 config = env.NumpyConfigure(custom_tests = {'CheckF77Clib' : CheckF77Clib})
 if not config.CheckF77Clib():
@@ -19,15 +19,14 @@
 config.Finish()
 
 # Build dfftpack
-src = env.NumpyGlob(pjoin('DFFTPACK', '*.f'))
-dfftpack = env.NumpyStaticExtLibrary('dfftpack', source = [str(s) for s in src])
+src = env.Glob(pjoin('DFFTPACK', '*.f'))
+dfftpack = env.DistutilsStaticExtLibrary('dfftpack', source = [str(s) for s in src])
 env.PrependUnique(LIBS = ['dfftpack'])
-env.PrependUnique(LIBPATH = env['build_dir'])
+env.PrependUnique(LIBPATH = '.')
 
 # Build the fftpack wrapper
 src = [pjoin("src/fftpack", i) for i in ['zfft.cxx','drfft.cxx', 'zfftnd.cxx']]
-src.append(env.NumpyFromFTemplate('fftpack.pyf', 'fftpack.pyf.src'))
-env.NumpyPythonExtension('_fftpack', src + ['src/zrfft.c'])
+env.NumpyPythonExtension('_fftpack', src + ['src/zrfft.c', 'fftpack.pyf'])
 
 # Build convolve
 src = ['src/fftpack/convolve.cxx',  'convolve.pyf']

Modified: branches/refactor_fft/scipy/fftpack/setupscons.py
===================================================================
--- branches/refactor_fft/scipy/fftpack/setupscons.py	2008-10-28 05:24:55 UTC (rev 4860)
+++ branches/refactor_fft/scipy/fftpack/setupscons.py	2008-10-28 05:33:09 UTC (rev 4861)
@@ -14,7 +14,7 @@
     config.add_subpackage('fftpack')
 
     # Build optional backends
-    config.add_subpackage('backends')
+   # config.add_subpackage('backends')
 
     return config
 



More information about the Scipy-svn mailing list