From 42a2bdd3bf49948556cd974631943eeed7269d1f Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Fri, 7 Aug 2026 08:59:16 -0400 Subject: [PATCH] python3Packages.cuda-tile: fix build with newer python distutils is gone, and while newer setuptools has a shim for distutils.file_util.copy_file, it does not support the dry_run arg, so remove as it seems not to be utilized here anyway. --- pkgs/development/python-modules/cuda-tile/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/cuda-tile/default.nix b/pkgs/development/python-modules/cuda-tile/default.nix index 05215d6e3f41..639f44217785 100644 --- a/pkgs/development/python-modules/cuda-tile/default.nix +++ b/pkgs/development/python-modules/cuda-tile/default.nix @@ -49,6 +49,8 @@ buildPythonPackage.override { stdenv = cudaPackages.backendStdenv; } (finalAttrs postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "setuptools==80.10.2" "setuptools" + substituteInPlace setup.py \ + --replace-fail ' dry_run=self.dry_run)' ' )' '' # Otherwise fails to find libc # xla_ffi.cpp:(.text+0x308): undefined reference to `__stack_chk_fail'