[Numpy-svn] r5531 - vendor/tools

numpy-svn@scip... numpy-svn@scip...
Sat Jul 26 00:16:17 CDT 2008


Author: cdavid
Date: 2008-07-26 00:16:14 -0500 (Sat, 26 Jul 2008)
New Revision: 5531

Modified:
   vendor/tools/build.py
Log:
Take the config file as an argument.

Modified: vendor/tools/build.py
===================================================================
--- vendor/tools/build.py	2008-07-26 05:07:04 UTC (rev 5530)
+++ vendor/tools/build.py	2008-07-26 05:16:14 UTC (rev 5531)
@@ -78,7 +78,7 @@
 
 class Config(object):
     def __init__(self):
-        self.arch = None
+        self.arch = 'NOSSE'
         self.cpuclass = 'i386'
         self.freq = 0
         self.pw = 32
@@ -120,11 +120,11 @@
     return cfg
 
 if __name__ == '__main__':
-    try:
-        cfg = read_config(pjoin(dirname(__file__), 'site.cfg'))
-    except IOError:
-        print "Using default config (site.cfg not found)"
+    argc = len(sys.argv)
+    if argc < 2:
         cfg = Config()
+    else:
+        cfg = read_config(sys.argv[1])
 
     ARCH = cfg.arch
     FC = cfg.f77



More information about the Numpy-svn mailing list