Skip to content
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

matplotlib: Fix TkAgg #20775

Merged
merged 1 commit into from
Dec 4, 2016

Conversation

aherrmann
Copy link
Member

Motivation for this change

Matplotlib with TkAgg was broken in 16.09 due to separate outputs in tk.
The matplotlib packages in master and release-16.09 are so different that the changes in this PR and in #20774 are incompatible.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

CC: @FRidh @lovek323

Support for TkAgg was broken due to the package tk being split into
multiple outputs: The setup script was unable to locate the tk headers.

This patch fixes that by passing the include path from tk.dev
explicitly

@mention-bot
Copy link

@aherrmann, thanks for your PR! By analyzing the history of the files in this pull request, we identified @domenkozar, @datakurre and @FRidh to be potential reviewers.

@FRidh FRidh self-assigned this Nov 28, 2016
@FRidh
Copy link
Member

FRidh commented Nov 28, 2016

Is it working on master as expected?

@FRidh
Copy link
Member

FRidh commented Nov 28, 2016

Note that I just pushed 4626857 (to fix evaluation when enabling TK backend with Python 3) so you will need to rebase.

Support for TkAgg was broken due to the package `tk` being split into
multiple outputs: The setup script was unable to locate the tk headers.

This patch fixes that by passing the include path from `tk.dev`
explicitly
@aherrmann
Copy link
Member Author

@FRidh Yes, it's working on master as expected. I just checked it with python 2.7 and 3.5. Thanks!

And thanks for the heads-up. I've rebased the PR and tested it with python 2.7 and 3.5.

@FRidh FRidh merged commit 6a9f087 into NixOS:release-16.09 Dec 4, 2016
@aherrmann
Copy link
Member Author

@FRidh Thanks, it's working as expected.

@aherrmann aherrmann deleted the pr_matplotlib_tkagg_stable branch December 4, 2016 14:58
adrianpk added a commit to adrianpk/nixpkgs that referenced this pull request May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants