diff options
author | Tyson Whitehead <twhitehead@gmail.com> | 2018-08-02 16:15:52 -0400 |
---|---|---|
committer | Tyson Whitehead <twhitehead@gmail.com> | 2018-08-03 14:28:46 -0400 |
commit | fd0c467f9671835a71bcaa36439c7f7adfccb126 (patch) | |
tree | 208f2c5c69334b2d1072f6e5b028e1c76307cb01 /pkgs/development/python-modules | |
parent | 89a89ddfb3665561a3410420634ada773dfea691 (diff) | |
download | nixlib-fd0c467f9671835a71bcaa36439c7f7adfccb126.tar nixlib-fd0c467f9671835a71bcaa36439c7f7adfccb126.tar.gz nixlib-fd0c467f9671835a71bcaa36439c7f7adfccb126.tar.bz2 nixlib-fd0c467f9671835a71bcaa36439c7f7adfccb126.tar.lz nixlib-fd0c467f9671835a71bcaa36439c7f7adfccb126.tar.xz nixlib-fd0c467f9671835a71bcaa36439c7f7adfccb126.tar.zst nixlib-fd0c467f9671835a71bcaa36439c7f7adfccb126.zip |
tensorflow: workaround tensorboard collision from upstream pip hack
Upstream lists tensorboard as a utility from tensorflow despite it being provided by tensorboard to stop pip for deleting it. This causes python.withPackages collisions between the two.
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/tensorflow/bin.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/tensorflow/bin.nix b/pkgs/development/python-modules/tensorflow/bin.nix index 4e3621157f93..42e35df7497a 100644 --- a/pkgs/development/python-modules/tensorflow/bin.nix +++ b/pkgs/development/python-modules/tensorflow/bin.nix @@ -61,6 +61,15 @@ in buildPythonPackage rec { # bleach) Hence we disable dependency checking for now. installFlags = lib.optional isPy36 "--no-dependencies"; + + # Upstream has a pip hack that results in bin/tensorboard being in both tensorflow + # and the propageted input tensorflow-tensorboard which causes environment collisions. + # + # https://github.com/tensorflow/tensorflow/blob/v1.7.1/tensorflow/tools/pip_package/setup.py#L79 + postInstall = '' + rm $out/bin/tensorboard + ''; + # Note that we need to run *after* the fixup phase because the # libraries are loaded at runtime. If we run in preFixup then # patchelf --shrink-rpath will remove the cuda libraries. |