[Scipy-svn] r4127 - trunk/scipy/special

scipy-svn@scip... scipy-svn@scip...
Thu Apr 10 16:50:24 CDT 2008


Author: cdavid
Date: 2008-04-10 16:50:21 -0500 (Thu, 10 Apr 2008)
New Revision: 4127

Modified:
   trunk/scipy/special/SConstruct
Log:
prepend special functions library.

Modified: trunk/scipy/special/SConstruct
===================================================================
--- trunk/scipy/special/SConstruct	2008-04-10 21:49:41 UTC (rev 4126)
+++ trunk/scipy/special/SConstruct	2008-04-10 21:50:21 UTC (rev 4127)
@@ -29,6 +29,7 @@
     if not libname:
         libname = name
     src = env.NumpyGlob(pjoin(name, '*%s' % ext))
+    assert len(src) > 0
     env.NumpyStaticExtLibrary(libname, source = src)
 
 # C libraries
@@ -41,7 +42,7 @@
 build_lib('toms', '.f')
 build_lib('amos', '.f')
 build_lib('cdflib', '.f', 'cdf')
-build_lib('specfunlib', '.f')
+build_lib('specfun', '.f', 'specfunlib')
 
 env.AppendUnique(LIBPATH = [env['build_dir']])
 
@@ -56,6 +57,7 @@
                          LINKFLAGSEND = env['F77_LDFLAGS'])
 
 # Specfun extension
-env.NumpyPythonExtension('specfun', source = 'specfun.pyf', LIBS = 'specfunlib', \
+env.Prepend(LIBS = ['specfunlib'])
+env.NumpyPythonExtension('specfun', source = 'specfun.pyf',
                          F2PYOPTIONS = ["--no-wrap-functions"],
                          LINKFLAGSEND = env['F77_LDFLAGS'])



More information about the Scipy-svn mailing list