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
commit 9c52c7cbd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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" {} \;
'';