Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

distutils has been deprecated in Python 3.12 #611

Open
baldurmen opened this issue Apr 2, 2024 · 3 comments
Open

distutils has been deprecated in Python 3.12 #611

baldurmen opened this issue Apr 2, 2024 · 3 comments

Comments

@baldurmen
Copy link
Contributor

Hi!

Python 3.12 has dropped distutils. This isn't the end of the world for whipper, as it's only used here:

https://github.com/whipper-team/whipper/blob/develop/whipper/command/main.py#L42-L45

Even so, this code will fail on 3.12 and should be replaced by something else.

@MerlijnWajer
Copy link
Collaborator

Seems like we can do this to replace get_python_lib:

import sysconfig
sysconfig.get_path('platlib')

@MerlijnWajer
Copy link
Collaborator

That was added in Python 3.2, so we could probably just rely on it.

@MerlijnWajer
Copy link
Collaborator

MerlijnWajer commented Apr 23, 2024

Actually 'purelib' might be a better path/place for some of the plugins, but I haven't yet found a way to use /usr/local through sysconfig.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants