[Numpy-svn] r5563 - vendor/tools

numpy-svn@scip... numpy-svn@scip...
Mon Jul 28 01:12:44 CDT 2008


Author: cdavid
Date: 2008-07-28 01:12:41 -0500 (Mon, 28 Jul 2008)
New Revision: 5563

Modified:
   vendor/tools/build.py
Log:
Add option to clean everything from command line.

Modified: vendor/tools/build.py
===================================================================
--- vendor/tools/build.py	2008-07-28 06:10:59 UTC (rev 5562)
+++ vendor/tools/build.py	2008-07-28 06:12:41 UTC (rev 5563)
@@ -142,20 +142,23 @@
 
 if __name__ == '__main__':
     argc = len(sys.argv)
-    if argc < 2:
-        cfg = Config()
+    if '-c' in sys.argv:
+        clean()
     else:
-        cfg = read_config(sys.argv[1])
+        if argc < 2:
+            cfg = Config()
+        else:
+            cfg = read_config(sys.argv[1])
 
-    ARCH = cfg.arch
-    FC = cfg.f77
-    LAPACK_F77_FLAGS = cfg.lapack_flags
-    ATLAS_TARBALL = 'atlas-3.8.2-%s.tbz2' % ARCH
-    ATLAS_PW = cfg.pw
-    ATLAS_MHZ = cfg.freq
+        ARCH = cfg.arch
+        FC = cfg.f77
+        LAPACK_F77_FLAGS = cfg.lapack_flags
+        ATLAS_TARBALL = 'atlas-3.8.2-%s.tbz2' % ARCH
+        ATLAS_PW = cfg.pw
+        ATLAS_MHZ = cfg.freq
 
-    clean()
-    for t in cfg.targets:
-        target = TARGETS[t]
-        for action in target:
-            action()
+        clean()
+        for t in cfg.targets:
+            target = TARGETS[t]
+            for action in target:
+                action()



More information about the Numpy-svn mailing list