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.
This commit is contained in:
Andrew Marshall
2026-08-07 08:59:16 -04:00
parent b7c2ada94f
commit 42a2bdd3bf

View File

@@ -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'