Skip to content

Drop runtime dependency on distutils#1361

Merged
tomMoral merged 1 commit intojoblib:masterfrom
PeterJCLaw:drop-distutils
Nov 17, 2022
Merged

Drop runtime dependency on distutils#1361
tomMoral merged 1 commit intojoblib:masterfrom
PeterJCLaw:drop-distutils

Conversation

@PeterJCLaw
Copy link
Copy Markdown
Contributor

@PeterJCLaw PeterJCLaw commented Nov 16, 2022

distutils is going away in Python 3.12 and is deprecated from Python 3.10 onwards. It's also kinda slow to import. This import was kept around to avoid breaking scikit-learn, however it's now been long enough since scikit-learn deployed a fix (scikit-learn 1.1 was released in May 2022) that it should be safe to remove this.

As discussed in #1277 (comment)

`distutils` is going away in Python 3.12 and is deprecated from
Python 3.10 onwards. It's also kinda slow to import. This import
was kept around to avoid breaking scikit-learn, however it's now
been long enough since scikit-learn deployed a fix that it should
be safe to remove this.
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 16, 2022

Codecov Report

Base: 94.02% // Head: 93.99% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (da30301) compared to base (854458e).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1361      +/-   ##
==========================================
- Coverage   94.02%   93.99%   -0.03%     
==========================================
  Files          52       52              
  Lines        7292     7291       -1     
==========================================
- Hits         6856     6853       -3     
- Misses        436      438       +2     
Impacted Files Coverage Δ
joblib/backports.py 69.38% <ø> (-0.31%) ⬇️
joblib/test/testutils.py 50.00% <0.00%> (-50.00%) ⬇️
joblib/pool.py 87.80% <0.00%> (-0.82%) ⬇️
joblib/parallel.py 96.03% <0.00%> (-0.80%) ⬇️
joblib/_parallel_backends.py 94.85% <0.00%> (+1.83%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@PeterJCLaw PeterJCLaw marked this pull request as ready for review November 16, 2022 19:36
@PeterJCLaw
Copy link
Copy Markdown
Contributor Author

Not sure what's up with the docs build. It seems to have hit a permissions issue, though I'm not sure if/how that's related to these changes.

Copy link
Copy Markdown
Contributor

@tomMoral tomMoral left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! thanks for the PR @PeterJCLaw

The doc builid error is on master so I will merge this one as it.

@tomMoral tomMoral merged commit 796e7aa into joblib:master Nov 17, 2022
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