Merge pull request #41878 from jyp/tf-fix-patchelf
python.pkgs.tensorflow: repair postFixup phase
This commit is contained in:
commit
9c52c7cbd2
@ -71,7 +71,7 @@ in buildPythonPackage rec {
|
|||||||
lib.optionalString (stdenv.isLinux) ''
|
lib.optionalString (stdenv.isLinux) ''
|
||||||
rrPath="$out/${python.sitePackages}/tensorflow/:${rpath}"
|
rrPath="$out/${python.sitePackages}/tensorflow/:${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…
x
Reference in New Issue
Block a user