Merge pull request #292841 from mweinelt/pyarrow-3.12

python312Packages.pyarrow: replace distuils usage
This commit is contained in:
Martin Weinelt 2024-03-02 19:36:47 +01:00 committed by GitHub
commit 8a6c6d58fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = [