Skip to content

MNT: do a better job guessing the GUI framework in use #18245

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
Aug 14, 2020

Conversation

tacaswell
Copy link
Member

PR Summary

We currently check the GUI framework and reject changing to
a different framework. This adds the ability to check the running
framework before we start guessing frameworks to use.

This matters the most in the headless linux case where you have a lot of the GUI frameworks available. Currently we try to import all of them before we give up (despite the fact that it is check on our side that is failing them!)

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant

@tacaswell tacaswell added this to the v3.3.2 milestone Aug 13, 2020
We currently check the GUI framework and reject changing to
a different framework.  This adds the ability to check the running
framework before we start guessing frameworks to use.
@jkseppan jkseppan merged commit 6a40954 into matplotlib:master Aug 14, 2020
@lumberbot-app
Copy link

lumberbot-app bot commented Aug 14, 2020

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
$ git checkout v3.3.x
$ git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
$ git cherry-pick -m1 6a40954aefc760861c85c5a94cb7270903e603ea
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
$ git commit -am 'Backport PR #18245: MNT: do a better job guessing the GUI framework in use'
  1. Push to a named branch :
git push YOURFORK v3.3.x:auto-backport-of-pr-18245-on-v3.3.x
  1. Create a PR against branch v3.3.x, I would have named this PR:

"Backport PR #18245 on branch v3.3.x"

And apply the correct labels and milestones.

Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon!

If these instruction are inaccurate, feel free to suggest an improvement.

jkseppan added a commit to jkseppan/matplotlib that referenced this pull request Aug 14, 2020
@tacaswell tacaswell deleted the lazier_headless branch August 14, 2020 12:35
dopplershift added a commit that referenced this pull request Aug 14, 2020
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.

3 participants