Skip to content

Fix issue #1330: Remove distutils dependency for Python 3.12+ compatibility#1334

Open
edschofield wants to merge 1 commit intoDistrictDataLabs:developfrom
PythonCharmers:fix-1330
Open

Fix issue #1330: Remove distutils dependency for Python 3.12+ compatibility#1334
edschofield wants to merge 1 commit intoDistrictDataLabs:developfrom
PythonCharmers:fix-1330

Conversation

@edschofield
Copy link
Copy Markdown

distutils was removed from the stdlib in Python 3.12. Yellowbrick only used distutils to check whether matplotlib >= 1.5.0, a version that is now ancient history, even though Yellowbrick depends on Matplotlib >= 2.0.2.

This patch removes the version checks and obsolete workarounds for older versions of matplotlib.

This is inspired by this commit but cleaner, omitting many unrelated modifications to test images.

…on 3.12+ compatibility

distutils was removed from the stdlib in Python 3.12. Yellowbrick only used
distutils to check whether matplotlib >= 1.5.0, a version that
is now ancient history, even though Yellowbrick depends on Matplotlib >=
2.0.2.

This patch removes the version checks and obsolete workarounds for older
versions of matplotlib.
@williamgilpin
Copy link
Copy Markdown

@edschofield Thank you! I was hitting this same bug in my workflow, and installing from this PR fixed it for me. I very much appreciate it.

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.

2 participants