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

Remove dependency on distutils.version #398

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ferdnyc
Copy link

@ferdnyc ferdnyc commented Feb 17, 2024

distutils has been removed as of Python 3.12.

The replacement for distutils.version.LooseVersion, packaging.version.LegacyVersion, was similarly dropped from packaging as of version 22.

The only uses of LooseVersion() checks were to provide compatibility with IPython 0.10 - 0.12. Those versions didn't even support Python 3. Dropping compatibility with ancient IPython is the simplest fix.

distutils has been removed as of Python 3.12.

The replacement for distutils.version.LooseVersion,
packaging.version.LegacyVersion, was similarly dropped from
packaging as of version 22.

The only uses of LooseVersion() checks were to provide compatibility
with IPython 0.10 - 0.12. Those versions didn't even support Python 3.
Dropping compatibility with ancient IPython is the simplest fix.
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.

1 participant