From 5ef3bb9c4a97f58ee4806a46e6fd8a0412c0bae2 Mon Sep 17 00:00:00 2001 From: Benjamin Hipple Date: Fri, 15 May 2020 12:01:07 -0400 Subject: [PATCH] tensorflow: passthru deps from bazel build This is done by default by the go/rust/bazel builders and allows scripts/tools/users to inspect the dependencies; since tensorflow is wrapped as a python package, we should pass this through for consistency. --- pkgs/development/python-modules/tensorflow/1/default.nix | 5 ++++- pkgs/development/python-modules/tensorflow/2/default.nix | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tensorflow/1/default.nix b/pkgs/development/python-modules/tensorflow/1/default.nix index 7c628a0789b0..4dc5c57070d1 100644 --- a/pkgs/development/python-modules/tensorflow/1/default.nix +++ b/pkgs/development/python-modules/tensorflow/1/default.nix @@ -430,7 +430,10 @@ in buildPythonPackage { EOF ''; - passthru.libtensorflow = bazel-build.out; + passthru = { + deps = bazel-build.deps; + libtensorflow = bazel-build.out; + }; inherit (bazel-build) meta; } diff --git a/pkgs/development/python-modules/tensorflow/2/default.nix b/pkgs/development/python-modules/tensorflow/2/default.nix index 3b4f45f3176f..4dd378d1410b 100644 --- a/pkgs/development/python-modules/tensorflow/2/default.nix +++ b/pkgs/development/python-modules/tensorflow/2/default.nix @@ -421,7 +421,10 @@ in buildPythonPackage { ''; # Regression test for #77626 removed because not more `tensorflow.contrib`. - passthru.libtensorflow = bazel-build.out; + passthru = { + deps = bazel-build.deps; + libtensorflow = bazel-build.out; + }; inherit (bazel-build) meta; }