[Scipy-svn] r6281 - in trunk/scipy/lib: blas lapack

scipy-svn@scip... scipy-svn@scip...
Mon Mar 29 23:39:08 CDT 2010


Author: cdavid
Date: 2010-03-29 23:39:08 -0500 (Mon, 29 Mar 2010)
New Revision: 6281

Modified:
   trunk/scipy/lib/blas/setup.py
   trunk/scipy/lib/lapack/setup.py
Log:
PY3K: make setup.py in scipy.lib py3-runnable.

Modified: trunk/scipy/lib/blas/setup.py
===================================================================
--- trunk/scipy/lib/blas/setup.py	2010-03-30 01:57:21 UTC (rev 6280)
+++ trunk/scipy/lib/blas/setup.py	2010-03-30 04:39:08 UTC (rev 6281)
@@ -58,7 +58,7 @@
     atlas_version = ([v[3:-3] for k,v in blas_opt.get('define_macros',[]) \
                       if k=='ATLAS_INFO']+[None])[0]
     if atlas_version:
-        print 'ATLAS version',atlas_version
+        print ('ATLAS version: %s' % atlas_version)
 
     target_dir = ''
     skip_names = {'cblas':[],'fblas':[]}
@@ -93,7 +93,7 @@
     # cblas:
     def get_cblas_source(ext, build_dir):
         name = ext.name.split('.')[-1]
-        assert name=='cblas',`name`
+        assert name=='cblas', repr(name)
         if atlas_version is None:
             target = join(build_dir,target_dir,'cblas.pyf')
             from distutils.dep_util import newer

Modified: trunk/scipy/lib/lapack/setup.py
===================================================================
--- trunk/scipy/lib/lapack/setup.py	2010-03-30 01:57:21 UTC (rev 6280)
+++ trunk/scipy/lib/lapack/setup.py	2010-03-30 04:39:08 UTC (rev 6281)
@@ -34,7 +34,7 @@
     atlas_version = ([v[3:-3] for k,v in lapack_opt.get('define_macros',[]) \
                       if k=='ATLAS_INFO']+[None])[0]
     if atlas_version:
-        print 'ATLAS version',atlas_version
+        print ('ATLAS version: %s' % atlas_version)
 
     target_dir = ''
     skip_names = {'clapack':[],'flapack':[]}



More information about the Scipy-svn mailing list