gurobipy: Bump to 7.5.2

This commit is contained in:
Shea Levy
2017-12-22 11:43:09 -05:00
parent 73a0d95b96
commit 02efc7600b
4 changed files with 67 additions and 31 deletions

View File

@@ -5,18 +5,19 @@ let utf =
else if python.ucsEncoding == 4 then "32"
else throw "Unsupported python UCS encoding UCS${toString python.ucsEncoding}";
in python.pkgs.buildPythonPackage
{ name = "gurobipy-7.0.2";
{ name = "gurobipy-7.5.2";
src = fetchurl
{ url = "http://packages.gurobi.com/7.0/gurobi7.0.2_linux64.tar.gz";
sha256 = "1lgdj4cncjvnnw8dppiax7q2j8121pxyg9iryj8v26mrk778dnmn";
{ url = "http://packages.gurobi.com/7.5/gurobi7.5.2_linux64.tar.gz";
sha256 = "13i1dl22lnmg7z9mb48zl3hy1qnpwdpr0zl2aizda0qnb7my5rnj";
};
setSourceRoot = "sourceRoot=$(echo gurobi*/*64)";
patches = [ ./no-clever-setup.patch ];
postInstall = "mv lib/libaes*.so* lib/libgurobi*.so* $out/lib";
postFixup =
''
patchelf --set-rpath $out/lib \
$out/lib/python2.7/site-packages/gurobipy/gurobipy.so
patchelf --add-needed libaes70.so \
patchelf --add-needed libaes75.so \
$out/lib/python2.7/site-packages/gurobipy/gurobipy.so
'';
}