-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distutils removed in Python3.12 #42
Comments
Thanks for spotting this. It turns out this issue can be masked if Rummaging in the python config variables seems to be somewhat brittle, as I don't think any particular expectation is provided for stability version to version of which variables exist or what they are named. I think Using The library suffix looks to be the trickiest point; |
Of course everything in python is terrible, so almost none of that worked as I had hoped, but I think I came up with work-arounds for everything. @BenSmithers , if you could try out the changes in #43 with Homebrew it would be helpful to make sure it doesn't involve some yet-different, wacky way of installing python that the proposed logic doesn't handle. One point which is not solved is that while working on this I was reminded that it's actually rather tricky to pick a default for python module installation. There are three relevant types of installation:
In cases 1 and 3, using @arguelles , do you have any idea how we should resolve this module installation thing? I can (and probably will) add a configure option for it, but even if I do that we would still like to pick a default that works as much of the time as possible. I'd shy away from making |
This worked on my end to fix the |
That python install location is expected, with the current version of the patch. Is there some reason you would expect |
distutils
was deprecated and then removed with the release of Python 3.12.And since homebrew now also distributes that newer version of Python with boost-python - the current build system doesn't quite work in newer versions of MacOS because of the
distutils
dependency in theconfigure
script here.I found that using
sysconfig
andsite
can workaround the way it's used. Something like this works on my end - but this needs more testing against other Python versions. The lines highlighted in the link above could be replaced withThe text was updated successfully, but these errors were encountered: