From aeccee810aabf22bc1bdda305e5611e9e61c406e Mon Sep 17 00:00:00 2001 From: Madoura Date: Tue, 10 Oct 2023 01:43:09 -0500 Subject: [PATCH] python3Packages.torch: Fix 'setuptools' not being found with ROCm build --- pkgs/development/python-modules/torch/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/torch/default.nix b/pkgs/development/python-modules/torch/default.nix index c9c400b57bd5..217c43de2327 100644 --- a/pkgs/development/python-modules/torch/default.nix +++ b/pkgs/development/python-modules/torch/default.nix @@ -101,6 +101,11 @@ let rocminfo rocm-thunk rocm-comgr rocm-device-libs rocm-runtime clr.icd hipify ]; + + # Fix `setuptools` not being found + postBuild = '' + rm -rf $out/nix-support + ''; }; brokenConditions = attrsets.filterAttrs (_: cond: cond) {