tensorflow: Add contrib/tensor_forest to rpath
This commit is contained in:
parent
24c6f141c2
commit
69af83b202
@ -72,7 +72,7 @@ in buildPythonPackage rec {
|
|||||||
([ stdenv.cc.cc.lib zlib ] ++ lib.optionals cudaSupport [ cudatoolkit_joined cudnn nvidia_x11 ]);
|
([ stdenv.cc.cc.lib zlib ] ++ lib.optionals cudaSupport [ cudatoolkit_joined cudnn nvidia_x11 ]);
|
||||||
in
|
in
|
||||||
lib.optionalString (stdenv.isLinux) ''
|
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"
|
internalLibPath="$out/${python.sitePackages}/tensorflow/python/_pywrap_tensorflow_internal.so"
|
||||||
find $out -name '*${stdenv.hostPlatform.extensions.sharedLibrary}' -exec patchelf --set-rpath "$rrPath" {} \;
|
find $out -name '*${stdenv.hostPlatform.extensions.sharedLibrary}' -exec patchelf --set-rpath "$rrPath" {} \;
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user