python3Packages.pytorch: Avoid duplicating libraries between $lib and $out
This commit is contained in:
parent
9c6aecf304
commit
5045795197
1 changed files with 2 additions and 1 deletions
|
@ -276,7 +276,8 @@ in buildPythonPackage rec {
|
|||
--replace \''${_IMPORT_PREFIX}/lib "$lib/lib"
|
||||
|
||||
mkdir $lib
|
||||
cp -r $out/${python.sitePackages}/torch/lib $lib/lib
|
||||
mv $out/${python.sitePackages}/torch/lib $lib/lib
|
||||
ln -s $lib/lib $out/${python.sitePackages}/torch/lib
|
||||
'';
|
||||
|
||||
postFixup = lib.optionalString stdenv.isDarwin ''
|
||||
|
|
Loading…
Reference in a new issue