tensorflow: Add contrib/tensor_forest to rpath

(cherry picked from commit 69af83b202)
This commit is contained in:
Herman Fries
2018-09-21 11:36:43 +02:00
committed by Roger Qiu
parent 38a99219f3
commit a8511a6f86

View File

@@ -72,7 +72,7 @@ in buildPythonPackage rec {
([ stdenv.cc.cc.lib zlib ] ++ lib.optionals cudaSupport [ cudatoolkit_joined cudnn nvidia_x11 ]);
in
lib.optionalString (stdenv.isLinux) ''
rrPath="$out/${python.sitePackages}/tensorflow/:${rpath}"
rrPath="$out/${python.sitePackages}/tensorflow/:$out/${python.sitePackages}/tensorflow/contrib/tensor_forest/:${rpath}"
internalLibPath="$out/${python.sitePackages}/tensorflow/python/_pywrap_tensorflow_internal.so"
find $out -name '*${stdenv.hostPlatform.extensions.sharedLibrary}' -exec patchelf --set-rpath "$rrPath" {} \;
'';