aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/tensorflow/2/bin.nix
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-05-20 01:39:43 +0200
committerKatharina Fey <kookie@spacekookie.de>2020-05-20 01:39:43 +0200
commit1849de11ec1e32e9eebb83f24d5339bea88b7ed7 (patch)
tree0aaf3cead09c2d55c67c6f6a86ad20af399797d8 /nixpkgs/pkgs/development/python-modules/tensorflow/2/bin.nix
parent304c06d7a7ea3f5c84031d325ece8d38b8c1d829 (diff)
parent0f5ce2fac0c726036ca69a5524c59a49e2973dd4 (diff)
Merge commit '0f5ce2fac0c726036ca69a5524c59a49e2973dd4'
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/tensorflow/2/bin.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/tensorflow/2/bin.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/tensorflow/2/bin.nix b/nixpkgs/pkgs/development/python-modules/tensorflow/2/bin.nix
index d32305ff513..acb5f473ec9 100644
--- a/nixpkgs/pkgs/development/python-modules/tensorflow/2/bin.nix
+++ b/nixpkgs/pkgs/development/python-modules/tensorflow/2/bin.nix
@@ -19,7 +19,7 @@
, opt-einsum
, backports_weakref
, tensorflow-estimator_2
-, tensorflow-tensorboard
+, tensorflow-tensorboard_2
, cudaSupport ? false
, cudatoolkit ? null
, cudnn ? null
@@ -77,7 +77,7 @@ in buildPythonPackage {
google-pasta
wrapt
tensorflow-estimator_2
- tensorflow-tensorboard
+ tensorflow-tensorboard_2
keras-applications
keras-preprocessing
] ++ lib.optional (!isPy3k) mock
@@ -159,6 +159,14 @@ in buildPythonPackage {
done
'';
+ # Upstream has a pip hack that results in bin/tensorboard being in both tensorflow
+ # and the propagated input tensorflow-tensorboard, which causes environment collisions.
+ # Another possibility would be to have tensorboard only in the buildInputs
+ # See https://github.com/NixOS/nixpkgs/pull/44381 for more information.
+ postInstall = ''
+ rm $out/bin/tensorboard
+ '';
+
pythonImportsCheck = [
"tensorflow"
"tensorflow.keras"