[SciPy-Dev] scipy svn + python3.1.2?

Neal Becker ndbecker2@gmail....
Tue Oct 19 18:53:30 CDT 2010


Neal Becker wrote:

> Is this supposed to work?
> 
> I got as far as:
>  env ATLAS=/usr/lib64 FFTW=/usr/lib64 BLAS=/usr/lib64 LAPACK=/usr/lib64
> python3 setup.py config_fc --fcompiler=gnu95  build
> Converting to Python3 via 2to3...
> 
> ...
> RefactoringTool:
> /home/nbecker/scipy/build/py3k/scipy/sparse/linalg/dsolve/umfpack/setup.py
> RefactoringTool:
> /home/nbecker/scipy/build/py3k/scipy/sparse/linalg/isolve/setup.py
> /home/nbecker/scipy/build/py3k/scipy/linalg/basic.py
> /home/nbecker/scipy/build/py3k/scipy/linalg/decomp.py
> ...
> /home/nbecker/scipy/build/py3k/scipy/sparse/linalg/isolve/iterative.py
> Traceback (most recent call last):
>   File "setup.py", line 179, in <module>
>     setup_package()
>   File "setup.py", line 144, in setup_package
>     shutil.copy(site_cfg, src_path)
> NameError: global name 'shutil' is not defined

Well, that was easy:

Index: setup.py
===================================================================
--- setup.py	(revision 6848)
+++ setup.py	(working copy)
@@ -141,6 +141,7 @@
 
         site_cfg = os.path.join(local_path, 'site.cfg')
         if os.path.isfile(site_cfg):
+            import shutil
             shutil.copy(site_cfg, src_path)
 
     os.chdir(local_path)




More information about the SciPy-Dev mailing list