Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Remove logic for optionally building Agg and TkAgg.#13075

Merged
QuLogic merged 1 commit into
matplotlib:mastermatplotlib/matplotlib:masterfrom
anntzer:force-agg-tkagganntzer/matplotlib:force-agg-tkaggCopy head branch name to clipboard
Nov 6, 2019
Merged

Remove logic for optionally building Agg and TkAgg.#13075
QuLogic merged 1 commit into
matplotlib:mastermatplotlib/matplotlib:masterfrom
anntzer:force-agg-tkagganntzer/matplotlib:force-agg-tkaggCopy head branch name to clipboard

Conversation

@anntzer

@anntzer anntzer commented Jan 1, 2019

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

Would it be better to actually make tkagg optional?

@tacaswell tacaswell added this to the v3.1 milestone Jan 3, 2019
@anntzer

anntzer commented Jan 3, 2019

Copy link
Copy Markdown
Contributor Author

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

anntzer commented Jan 3, 2019

Copy link
Copy Markdown
Contributor Author

(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
Copy Markdown
Member

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

@anntzer

anntzer commented Feb 24, 2019

Copy link
Copy Markdown
Contributor Author

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

QuLogic commented Nov 3, 2019

Copy link
Copy Markdown
Member

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

anntzer commented Nov 4, 2019

Copy link
Copy Markdown
Contributor Author

rebased, build passes

@WeatherGod

WeatherGod commented Nov 4, 2019 via email

Copy link
Copy Markdown
Member

@anntzer

anntzer commented Nov 4, 2019

Copy link
Copy Markdown
Contributor Author

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.

@timhoffm timhoffm left a comment

Copy link
Copy Markdown
Member

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.