Skip to content

Commit

Permalink
python312Packages.pyarrow: replace distutils usage
Browse files Browse the repository at this point in the history
Closes: NixOS#292832
  • Loading branch information
mweinelt committed Mar 2, 2024
1 parent 81198fd commit 79fd30f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/python-modules/pyarrow/default.nix
Expand Up @@ -37,6 +37,10 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace pyproject.toml setup.py \
--replace "setuptools_scm < 8.0.0" "setuptools_scm"
'' + lib.optionalString (pythonAtLeast "3.12") ''
substituteInPlace ./cmake_modules/FindPython3Alt.cmake --replace-fail \
"from distutils import sysconfig" \
"import sysconfig"
'';

nativeBuildInputs = [
Expand Down

0 comments on commit 79fd30f

Please sign in to comment.