[Numpy-svn] r4479 - branches/numpy.scons/numpy/distutils/scons/core

numpy-svn@scip... numpy-svn@scip...
Tue Nov 20 23:25:26 CST 2007


Author: cdavid
Date: 2007-11-20 23:25:06 -0600 (Tue, 20 Nov 2007)
New Revision: 4479

Modified:
   branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py
Log:
Fix indentation in distutils.scons

Modified: branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py	2007-11-21 05:20:17 UTC (rev 4478)
+++ branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py	2007-11-21 05:25:06 UTC (rev 4479)
@@ -50,21 +50,21 @@
     return suncc.search(cnt)
 
 def is_f77_gnu(fullpath):
-    # XXX
+    # XXX: do this properly
     return pbasename(fullpath) == 'g77' or pbasename(fullpath) == 'gfortran'
 
 def get_vs_version(env):
     try:
-         version = env['MSVS']['VERSION']
-	 m = re.compile("([0-9]).([0-9])").match(version)
-	 if m:
-	     major = int(m.group(1))
-	     minor = int(m.group(2))
-	     return (major, minor)
-	 else:
- 	     raise RuntimeError("FIXME: failed to parse VS version")
+        version = env['MSVS']['VERSION']
+        m = re.compile("([0-9]).([0-9])").match(version)
+        if m:
+            major = int(m.group(1))
+            minor = int(m.group(2))
+            return (major, minor)
+        else:
+            raise RuntimeError("FIXME: failed to parse VS version")
     except KeyError:
-	 raise RuntimeError("Could not get VS version !")
+	    raise RuntimeError("Could not get VS version !")
 
 def GetNumpyOptions(args):
     """Call this with args=ARGUMENTS to take into account command line args."""



More information about the Numpy-svn mailing list