Merge pull request #85399 from cgevans/tensorflow-bin_2-depfix
tensorflow-bin_2: fix tensorboard dependency
This commit is contained in:
commit
36ee1e710a
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user