Merge pull request #113223 from danieldk/pytorch-fixes
python3Packages.pytorch-bin: do not depend on nvidia_x11
This commit is contained in:
commit
c58a900f61
@ -5,7 +5,6 @@
|
||||
, isPy38
|
||||
, isPy39
|
||||
, python
|
||||
, nvidia_x11
|
||||
, addOpenGLRunpath
|
||||
, future
|
||||
, numpy
|
||||
@ -52,7 +51,7 @@ in buildPythonPackage {
|
||||
'';
|
||||
|
||||
postFixup = let
|
||||
rpath = lib.makeLibraryPath [ stdenv.cc.cc.lib nvidia_x11 ];
|
||||
rpath = lib.makeLibraryPath [ stdenv.cc.cc.lib ];
|
||||
in ''
|
||||
find $out/${python.sitePackages}/torch/lib -type f \( -name '*.so' -or -name '*.so.*' \) | while read lib; do
|
||||
echo "setting rpath for $lib..."
|
||||
|
@ -6505,9 +6505,7 @@ in {
|
||||
|
||||
pytorch = callPackage ../development/python-modules/pytorch { cudaSupport = pkgs.config.cudaSupport or false; };
|
||||
|
||||
pytorch-bin = callPackage ../development/python-modules/pytorch/bin.nix {
|
||||
inherit (pkgs.linuxPackages) nvidia_x11;
|
||||
};
|
||||
pytorch-bin = callPackage ../development/python-modules/pytorch/bin.nix { };
|
||||
|
||||
pytorch-lightning = callPackage ../development/python-modules/pytorch-lightning { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user