[Numpy-svn] r5530 - vendor/tools

numpy-svn@scip... numpy-svn@scip...
Sat Jul 26 00:07:08 CDT 2008


Author: cdavid
Date: 2008-07-26 00:07:04 -0500 (Sat, 26 Jul 2008)
New Revision: 5530

Modified:
   vendor/tools/build.py
Log:
Add blas build (for def configuration).

Modified: vendor/tools/build.py
===================================================================
--- vendor/tools/build.py	2008-07-26 05:03:03 UTC (rev 5529)
+++ vendor/tools/build.py	2008-07-26 05:07:04 UTC (rev 5530)
@@ -48,11 +48,21 @@
     p = Popen(["make", "lapacklib", "FORTRAN=%s" % FC, "LOADER=%s" % FC, "OPTS=%s" % LAPACK_F77_FLAGS], cwd = LAPACK_SRC)
     os.waitpid(p.pid, 0)
 
+def build_blas():
+    print "====== Build BLAS ======"
+    p = Popen(["make", "blaslib", "FORTRAN=%s" % FC, "LOADER=%s" % FC, "OPTS=%s" % LAPACK_F77_FLAGS], cwd = LAPACK_SRC)
+    os.waitpid(p.pid, 0)
+
 def clean_lapack():
     print "====== Clean LAPACK ======"
     p = Popen(['make', 'cleanlib'],  cwd = LAPACK_SRC)
     os.waitpid(p.pid, 0)
 
+def clean_blas():
+    print "====== Clean BLAS ======"
+    p = Popen(['make', 'clean'],  cwd = LAPACK_SRC)
+    os.waitpid(p.pid, 0)
+
 def clean_atlas():
     print "====== Clean ATLAS ======"
     if os.path.exists(ATLAS_BUILDDIR):
@@ -63,7 +73,8 @@
     clean_lapack()
 
 TARGETS = {'atlas' : [configure_atlas, build_atlas, build_atlas_tarball],
-        'lapack' : build_lapack}
+        'lapack' : build_lapack,
+        'blas' : build_blas}
 
 class Config(object):
     def __init__(self):



More information about the Numpy-svn mailing list