[Scipy-svn] r5404 - trunk/scipy/weave
scipy-svn at scipy.org
scipy-svn at scipy.org
Thu Jan 8 12:48:03 EST 2009
Author: cdavid
Date: 2009-01-08 11:47:52 -0600 (Thu, 08 Jan 2009)
New Revision: 5404
Modified:
trunk/scipy/weave/build_tools.py
Log:
Fix msvc detection in weave.
Modified: trunk/scipy/weave/build_tools.py
===================================================================
--- trunk/scipy/weave/build_tools.py 2009-01-08 15:25:50 UTC (rev 5403)
+++ trunk/scipy/weave/build_tools.py 2009-01-08 17:47:52 UTC (rev 5404)
@@ -372,9 +372,11 @@
except:
#assume we're ok if devstudio exists
import distutils.msvccompiler
- version = distutils.msvccompiler.get_build_version()
- if version:
+ try:
+ distutils.msvccompiler.MSVCCompiler().initialize
result = 1
+ except distutils.errors.DistutilsPlatformError:
+ pass
return result
if os.name == 'nt':
More information about the Scipy-svn
mailing list