[Scipy-svn] r7103 - in trunk/scipy: lib/lapack linalg sparse/linalg/dsolve
scipy-svn at scipy.org
scipy-svn at scipy.org
Sat Jan 29 23:31:16 EST 2011
Author: rgommers
Date: 2011-01-29 22:31:16 -0600 (Sat, 29 Jan 2011)
New Revision: 7103
Modified:
trunk/scipy/lib/lapack/setup.py
trunk/scipy/linalg/setup.py
trunk/scipy/sparse/linalg/dsolve/setup.py
Log:
BUG: fix for build issue with MSCV 9, ifort and MKL. Patch by Christoph Gohkle. Closes #1376.
Modified: trunk/scipy/lib/lapack/setup.py
===================================================================
--- trunk/scipy/lib/lapack/setup.py 2011-01-29 21:38:13 UTC (rev 7102)
+++ trunk/scipy/lib/lapack/setup.py 2011-01-30 04:31:16 UTC (rev 7103)
@@ -96,9 +96,15 @@
)
# atlas_version:
+ if os.name == 'nt' and 'FPATH' in os.environ:
+ define_macros = [('NO_ATLAS_INFO', 1)]
+ else:
+ define_macros = []
+
config.add_extension('atlas_version',
sources = ['atlas_version.c'],
- extra_info = lapack_opt
+ extra_info = lapack_opt,
+ define_macros = define_macros
)
config.add_data_dir('tests')
Modified: trunk/scipy/linalg/setup.py
===================================================================
--- trunk/scipy/linalg/setup.py 2011-01-29 21:38:13 UTC (rev 7102)
+++ trunk/scipy/linalg/setup.py 2011-01-30 04:31:16 UTC (rev 7103)
@@ -1,5 +1,6 @@
#!/usr/bin/env python
+import os
from distutils.dep_util import newer_group, newer
from os.path import join
@@ -171,10 +172,15 @@
)
# atlas_version:
+ if os.name == 'nt' and 'FPATH' in os.environ:
+ define_macros = [('NO_ATLAS_INFO', 1)]
+ else:
+ define_macros = []
config.add_extension('atlas_version',
['atlas_version.c'],
- extra_info = lapack_opt
+ extra_info = lapack_opt,
+ define_macros = define_macros
)
config.add_data_dir('tests')
Modified: trunk/scipy/sparse/linalg/dsolve/setup.py
===================================================================
--- trunk/scipy/sparse/linalg/dsolve/setup.py 2011-01-29 21:38:13 UTC (rev 7102)
+++ trunk/scipy/sparse/linalg/dsolve/setup.py 2011-01-30 04:31:16 UTC (rev 7103)
@@ -2,6 +2,7 @@
from os.path import join, dirname
import sys
import os
+import glob
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
@@ -17,10 +18,15 @@
superlu_defs = []
superlu_defs.append(('USE_VENDOR_BLAS',1))
- superlu_src = os.path.join(dirname(__file__), 'SuperLU', 'SRC')
+ superlu_src = join(dirname(__file__), 'SuperLU', 'SRC')
+ sources = list(glob.glob(join(superlu_src, '*.c')))
+ if os.name == 'nt' and 'FPATH' in os.environ:
+ # when using MSVC + MKL, lsame is already in MKL
+ sources.remove(join(superlu_src, 'lsame.c'))
+
config.add_library('superlu_src',
- sources = [join(superlu_src,'*.c')],
+ sources = sources,
macros = superlu_defs,
include_dirs=[superlu_src],
)
More information about the Scipy-svn
mailing list