Skip to content

Remove dependency on distutils.version - #398

Merged
fabianp merged 1 commit into
pythonprofilers:masterfrom
ferdnyc:patch-1
Oct 15, 2026
Merged

fabianp merged 1 commit into
pythonprofilers:masterfrom
ferdnyc:patch-1

Conversation

@ferdnyc

@ferdnyc ferdnyc commented Feb 17, 2024 •

Copy link
Copy Markdown
Contributor

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.

Fixes #407

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.
@CharString

Copy link
Copy Markdown

Looks good, this closes #407

@fabianp
fabianp merged commit 384b340 into pythonprofilers:master Oct 15, 2026
@ferdnyc
ferdnyc deleted the patch-1 branch October 15, 2026 14:26
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.

Missing dependency on distutils

3 participants