Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use system distutils instead of the setuptools copy #22756

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

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Apr 1, 2022

PR Summary

setuptools 60 re-enabled their local copy of distutils: pypa/setuptools#2896

This apparently fails to set up paths that can find msbuild, so switch back the standard library distutils.

PR Checklist

Tests and Styling

  • [n/a] Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • [n/a] New features are documented, with examples if plot related.
  • [n/a] New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • [n/a] API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • [n/a] Documentation is sphinx and numpydoc compliant (the docs should build without error).

@QuLogic QuLogic added the Build label Apr 1, 2022
@QuLogic QuLogic added this to the v3.5.2 milestone Apr 1, 2022
@QuLogic QuLogic force-pushed the fix-azure branch 2 times, most recently from 0dc232c to f5ab2e5 Compare April 1, 2022 03:56
@QuLogic
Copy link
Member Author

QuLogic commented Apr 1, 2022

setuptools-59.8.0 worked; going to try something from 60. now.

@QuLogic QuLogic force-pushed the fix-azure branch 2 times, most recently from cf8d106 to ae0274f Compare April 1, 2022 04:15
@QuLogic
Copy link
Member Author

QuLogic commented Apr 1, 2022

And setuptools-60.10.0 fails.

@QuLogic QuLogic force-pushed the fix-azure branch 2 times, most recently from 0e74630 to 8bd52b0 Compare April 1, 2022 04:27
@QuLogic
Copy link
Member Author

QuLogic commented Apr 1, 2022

Dropping down to 60.0.0 fails as well, and the main change there is switching to setuptools' internal copy of distutils.

@QuLogic QuLogic changed the title Pin older setuptools on Azure Use system distutils instead of the setuptools copy Apr 1, 2022
@QuLogic QuLogic added the CI: Run cibuildwheel Run wheel building tests on a PR label Apr 1, 2022
@QuLogic
Copy link
Member Author

QuLogic commented Apr 1, 2022

cibuildwheel is pinned to setuptools 56, though AppVeyor is on 61.3.0. Not sure I should set the env var on the former too, but maybe we'll just wait until an update allows installing a newer version.

@QuLogic QuLogic marked this pull request as ready for review April 1, 2022 06:08
@oscargus oscargus added CI: Run cibuildwheel Run wheel building tests on a PR and removed CI: Run cibuildwheel Run wheel building tests on a PR labels Apr 1, 2022
@tacaswell
Copy link
Member

Do we need to document this in the install instructions as well?

I'm going to merge this to un-break CI.

@tacaswell tacaswell merged commit 20e38f4 into matplotlib:main Apr 1, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Apr 1, 2022
@QuLogic QuLogic deleted the fix-azure branch April 1, 2022 20:00
oscargus added a commit that referenced this pull request Apr 4, 2022
…756-on-v3.5.x

Backport PR #22756 on branch v3.5.x (Use system distutils instead of the setuptools copy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build CI: Run cibuildwheel Run wheel building tests on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants