Merge pull request #41878 from jyp/tf-fix-patchelf

python.pkgs.tensorflow: repair postFixup phase
This commit is contained in:
Jörg Thalheim
2018-06-12 10:41:26 +01:00
committed by GitHub

View File

@@ -71,7 +71,7 @@ in buildPythonPackage rec {
lib.optionalString (stdenv.isLinux) ''
rrPath="$out/${python.sitePackages}/tensorflow/:${rpath}"
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" {} \;
'';