Merge pull request #15329 from anderspapitto/tensorflow
tensorflow: init at 0.8.0
This commit is contained in:
commit
3a5781aa77
|
@ -16524,6 +16524,7 @@ in modules // {
|
|||
});
|
||||
|
||||
protobuf = self.protobuf2_6;
|
||||
protobuf3_0 = (self.protobufBuild pkgs.protobuf3_0).override { doCheck = false; };
|
||||
protobuf2_6 = self.protobufBuild pkgs.protobuf2_6;
|
||||
protobuf2_5 = self.protobufBuild pkgs.protobuf2_5;
|
||||
protobufBuild = protobuf: buildPythonPackage rec {
|
||||
|
@ -27236,4 +27237,37 @@ in modules // {
|
|||
license = licenses.wtfpl;
|
||||
};
|
||||
};
|
||||
|
||||
# tensorflow is built from a downloaded wheel, because the upstream
|
||||
# project's build system is an arcane beast based on
|
||||
# bazel. Untangling it and building the wheel from source is an open
|
||||
# problem.
|
||||
|
||||
tensorflow = self.tensorflowNoGpuSupport;
|
||||
|
||||
tensorflowNoGpuSupport = buildPythonPackage rec {
|
||||
name = "tensorflow";
|
||||
version = "0.8.0";
|
||||
format = "wheel";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-${version}-cp27-none-linux_x86_64.whl";
|
||||
sha256 = "07lb6rknngq9bicd7z1q9caiqxlqn4fdx8q24s3rqvv9wi79szws";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [ numpy six protobuf3_0 pkgs.swig ];
|
||||
|
||||
preFixup = ''
|
||||
RPATH="${stdenv.lib.makeLibraryPath [ pkgs.gcc.cc.lib pkgs.zlib ]}"
|
||||
find $out -name '*.so' -exec patchelf --set-rpath "$RPATH" {} \;
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "TensorFlow helps the tensors flow (no gpu support)";
|
||||
homepage = http://tensorflow.org;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue