Skip to content

Remove logic for optionally building Agg and TkAgg. #13075

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
Nov 6, 2019

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jan 1, 2019

PR Summary

They are actually not optional (that's the force = True setting which
overrides the OptionalBackendPackage logic), so just make them
SetupPackages and remove the corresponding (outdated) comments in
setup.cfg.template.

Builds on top of #13074 as the prose in setup.cfg.template is only true if we also remove windowing from there. [edit: that PR has been merged]

(The OptionalBackendPackage logic was also previously useful back when the default backend was selected at build time, but that's no longer the case.)

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@anntzer anntzer added the Build label Jan 1, 2019
@anntzer anntzer force-pushed the force-agg-tkagg branch 2 times, most recently from 2b3ba13 to d6aaaee Compare January 1, 2019 23:26
@tacaswell
Copy link
Member

Would it be better to actually make tkagg optional?

@tacaswell tacaswell added this to the v3.1 milestone Jan 3, 2019
@anntzer
Copy link
Contributor Author

anntzer commented Jan 3, 2019

It's been non-optional for years and no one complained; what would be the use case? Note that the build doesn't depend on any external headers or libraries.

@anntzer
Copy link
Contributor Author

anntzer commented Jan 3, 2019

(In fact I'm tempted to also make the OSX backend non-optional if someone can verify whether the cocoa headers are always installed with xcode...)

@tacaswell
Copy link
Member

punting to 3.2 as it has conflicts, in non-critical, and the fiddly to make sure we got it right.

@anntzer
Copy link
Contributor Author

anntzer commented Feb 24, 2019

Rebased. Once again, note that always forcing the build of tkagg (which does not depend on the tk headers) has been the actual behavior for years now.

@QuLogic
Copy link
Member

QuLogic commented Nov 3, 2019

It seems that moving Travis means I can't restart the broken build, so you'll have to rebase.

They are actually not optional (that's the `force = True` setting which
overrides the OptionalBackendPackage logic), so just make them
SetupPackages and remove the corresponding (outdated) comments in
setup.cfg.template.
@anntzer
Copy link
Contributor Author

anntzer commented Nov 4, 2019

rebased, build passes

@WeatherGod
Copy link
Member

WeatherGod commented Nov 4, 2019 via email

@anntzer
Copy link
Contributor Author

anntzer commented Nov 4, 2019

The tkagg build doesn't interact with tk at build time whatsoever since #6442. Quoting from that PR:

It is one way of building a manylinux wheel that can build on a basic Manylinux docker image (i.e. without tk -- this comment is mine), and then run with the TCL / Tk library installed on the installing user's machine.

Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

Seem reasonable. Should we want optional Agg at some point, we can always reintroduce it. For now this is a simplification of the setup code.

@QuLogic QuLogic merged commit 5495b88 into matplotlib:master Nov 6, 2019
@anntzer anntzer deleted the force-agg-tkagg branch November 6, 2019 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants