Skip to content

Commit

Permalink
gurobipy: fix eval
Browse files Browse the repository at this point in the history
  • Loading branch information
orivej committed Dec 9, 2017
1 parent 8e2f912 commit b687ffa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/gurobipy/darwin.nix
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, python, xar, cpio, cctools, insert_dylib }:
assert python.isPy27 && python.ucsEncoding == 2;
assert python.pkgs.isPy27 && python.ucsEncoding == 2;
stdenv.mkDerivation
{ name = "gurobipy-7.0.2";
src = fetchurl
Expand Down
14 changes: 6 additions & 8 deletions pkgs/development/python-modules/gurobipy/linux.nix
@@ -1,12 +1,10 @@
{ stdenv, fetchurl, python }:
assert python.isPy27;
let utf = if python.ucsEncoding == 2
then "16"
else if python.ucsEncoding == 4
then "32"
else throw "Unsupported python UCS encoding UCS${toString python.ucsEncoding}";
in
stdenv.mkDerivation
assert python.pkgs.isPy27;
let utf =
if python.ucsEncoding == 2 then "16"
else if python.ucsEncoding == 4 then "32"
else throw "Unsupported python UCS encoding UCS${toString python.ucsEncoding}";
in stdenv.mkDerivation
{ name = "gurobipy-7.0.2";
src = fetchurl
{ url = "http://packages.gurobi.com/7.0/gurobi7.0.2_linux64.tar.gz";
Expand Down
8 changes: 4 additions & 4 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -5631,11 +5631,11 @@ in {
};

gurobipy = if stdenv.system == "x86_64-darwin"
then callPackage ../development/python-modules/gurobipy/darwin.nix
{ inherit (pkgs.darwin) cctools insert_dylib;
}
then callPackage ../development/python-modules/gurobipy/darwin.nix {
inherit (pkgs.darwin) cctools insert_dylib;
}
else if stdenv.system == "x86_64-linux"
then callPackage ../development/python-modules/gurobipy/linux.nix {}
then callPackage ../development/python-modules/gurobipy/linux.nix {}
else throw "gurobipy not yet supported on ${stdenv.system}";

helper = buildPythonPackage rec {
Expand Down

0 comments on commit b687ffa

Please sign in to comment.