Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

In the build, declare all (compulsory) extension modules together.#14442

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
QuLogic merged 1 commit intomatplotlib:masterfromanntzer:extmods
Mar 21, 2020

Conversation

anntzer
Copy link
Contributor

@anntzeranntzer commentedJun 4, 2019
edited
Loading

... in a single function.

Splitting them over multiple classes doesn't really buy much.

Also convert the LibAgg and Qhull classes to toplevel functions,
as they play a role similar to add_numpy_flags.

I plan to do the same to agg and tkagg once#13075 gets in. done.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 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

... in a single function.Splitting them over multiple classes doesn't really buy much.Also convert the LibAgg and Qhull classes to toplevel functions,as they play a role similar to add_numpy_flags.
sources = [
'src/_macosx.m'
]
ext = Extension('matplotlib.backends._macosx', sources)
ext.extra_link_args.extend(['-framework', 'Cocoa'])
if platform.python_implementation().lower() == 'pypy':
ext.extra_compile_args.append('-DPYPY=1')
return ext
yield ext
Copy link
Member

Choose a reason for hiding this comment

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

Maybe it's clearer to just return a 1-element list here?

Suggested change
yieldext
return [ext]

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I think that's actually less consistent with the sole other (non-empty) implementation of get_extensions() (the main list), but can do the change if you insist.

Copy link
Member

Choose a reason for hiding this comment

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

Whilereturn specifies the return value completely,yield specifies only one element (of possibly many), so you need more context to infer the full returned result. But I don't really mind.

@QuLogicQuLogic merged commit50959b5 intomatplotlib:masterMar 21, 2020
@anntzeranntzer deleted the extmods branchMarch 21, 2020 23:46
@anntzeranntzer mentioned this pull requestMar 22, 2020
6 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
v3.3.0
Development

Successfully merging this pull request may close these issues.

4 participants
@anntzer@QuLogic@timhoffm@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp