1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00

tensorflow-bin_2: fix tensorboard pip-hack collision

This commit is contained in:
Constantine Glen Evans 2020-04-16 12:44:06 -07:00
parent efa52177ff
commit dfbee5e556
No known key found for this signature in database
GPG key ID: 1A1D58B86AE2AABD

View file

@ -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"