Closed mvdbeek closed 8 years ago
This fix will work around ATLAS_LIB_DIR not being set on OS X, since Apple's veclib is being used.
(.venv)mariuss-MBP:fix_numpy marius$ diff -Nru numpy-1.9.2/setup.py setup.py --- numpy-1.9.2/setup.py 2016-03-07 12:40:02.000000000 +0100 +++ setup.py 2016-08-10 11:37:47.000000000 +0200 @@ -204,9 +204,9 @@ site_cfg.write("[atlas]\n" "library_dirs = %s\n" "include_dirs = %s\n" - % (os.environ['ATLAS_LIB_DIR'], - os.environ['ATLAS_INCLUDE_DIR'])) - except Exception,ex: + % (os.environ.get('ATLAS_LIB_DIR', ""), + os.environ.get('ATLAS_INCLUDE_DIR', ""))) + except Exception as ex: raise RuntimeError("Writing custom site.cfg failed! %s" % ex) # Rewrite the version file everytime
Ping @bgruening
Thanks!
This fix will work around ATLAS_LIB_DIR not being set on OS X, since Apple's veclib is being used.
Ping @bgruening