Closed sikmir closed 3 weeks ago
We should definitely clean that up, but it's also strange this is giving problems for you (we test Python 3.12 on CI). What version of setuptools do you have installed in that environment? (potentially an older version of setuptools might not install distutils as well)
Replacing distutils
with setuptools._distutils
solves the problem for me.
setuptools 69.5.1
How is your setuptools installed? Normally installing setuptools also ensures there is an importable distutils
(which points to setuptools._distutils
)
How is your setuptools installed?
I use nix package https://github.com/NixOS/nixpkgs/blob/e178126c3ab15b0bfc300fb6cc8c58ea9f49c0d6/pkgs/development/python-modules/pyogrio/default.nix
Python 3.12 removed distutils after it being deprecated since Python 3.10. See https://docs.python.org/3/whatsnew/3.12.html#distutils