Skip to content
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

[tools] Replace uses of Python distutils for 3.12 compatibility #4883

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

eginhard
Copy link
Contributor

@eginhard eginhard commented Nov 9, 2023

The distutils packages has been removed in Python 3.12: https://docs.python.org/3.11/distutils/index.html

The sysconfig package is available since Python 3.2 and provides the necessary replacement functionality:
https://docs.python.org/3/library/sysconfig.html

Note, there is one remaining distutils usage in

from distutils.version import LooseVersion
but afaict there is no suitable replacement for this in the standard library.

The `distutils` packages has been removed in Python 3.12:
https://docs.python.org/3.11/distutils/index.html

The `sysconfig` package is available since Python 3.2 and provides the necessary
replacement functionality:
https://docs.python.org/3/library/sysconfig.html
@danpovey danpovey merged commit a611d7b into kaldi-asr:master Nov 13, 2023
2 checks passed
@eginhard eginhard deleted the distutils branch November 13, 2023 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants