galaxyproject / cargo-port

cache packages permanently
https://depot.galaxyproject.org/software/
MIT License
12 stars 34 forks source link

Add numpy tarball with fix for OS X in setup.py #83

Closed mvdbeek closed 8 years ago

mvdbeek commented 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

bgruening commented 8 years ago

Thanks!