Skip to content

DOC: Update page to note installation for ninja library #29083

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
Mar 21, 2025

Conversation

jimmyshah
Copy link
Contributor

@jimmyshah jimmyshah commented Nov 5, 2024

PR summary

At the sprints for PyData NYC, as I was setting up the repo for local development, I ran into an issue with installing ninja directly from the dev requirements file. After chatting with @story645, she suggested I update the documentation and make a separate section to make external dependency on ninja more clear.

This PR changes the docs page to add a new section for the ninja external dependency, and removes it from the Python section. I also added ninja to the list of external dependencies in the documentation.

PR checklist

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@jimmyshah jimmyshah changed the title Update page to note installation for ninja library DOC: Update page to note installation for ninja library Nov 5, 2024
@github-actions github-actions bot added the Documentation: devdocs files in doc/devel label Nov 5, 2024
Copy link
Member

@story645 story645 left a comment

Choose a reason for hiding this comment

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

The big thing I'm being nitpicky about is the order of bullets b/c ninja is mandatory and doc build dependencies not so much

@@ -212,7 +212,7 @@ Additionally, the following non-Python dependencies must also be installed local

* :ref:`c++ compiler<compile-dependencies>`
* :ref:`documentation build dependencies <doc-dependencies-external>`

* :ref:`ninja <ninja-dependencies>`
Copy link
Member

Choose a reason for hiding this comment

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

can you make this the first thing in the list since you need ninja before installing c++ -> basically mirroring the order in the dependencies file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@story645 done!

@ksunden
Copy link
Member

ksunden commented Nov 7, 2024

I think my gut reaction is that Ninja is not special enough its own section here. I will acknowledge that it is in a bit of an odd place in that it is really an external (non-python) dependency, but they happen to package it on pypi, which is sometimes the most convenient place for Python users to get it.

My current leaning would be to put it in the "Compilers" section (perhaps with a section rename to e.g. "Compilers and external build tools" or similar) as really that is what it is.

@story645
Copy link
Member

story645 commented Nov 7, 2024

My current leaning would be to put it in the "Compilers" section (perhaps with a section rename to e.g. "Compilers and external build tools" or similar) as really that is what it is.

@tacaswell suggested similar, only reason I suggested different section is b/c the compilers section is so rich w/ c++ compiler information. Which maybe:

  • Compilers and external build tools
    • compilers
    • ninja

But also if we're running that away with it, if @jimmyshah doesn't updated in a few days than I may just add a commit to this PR that makes those changes.

@jimmyshah
Copy link
Contributor Author

Apologies for the delay here, just catching up on this now. I'm having a little bit of trouble following the conversation:

If @story645 wants to push this through, also totally fine by me. I can try seeing this through as well, whatever works!

@story645
Copy link
Member

story645 commented Nov 19, 2024

It's the one you linked to, those are the tools for building compiled extensions. And would much prefer that you do it if you're up for it!

@jimmyshah
Copy link
Contributor Author

I implemented the feedback from the conversation above, let me know if I can do anything else. Thank you for guiding me through the PR @story645!

@jimmyshah jimmyshah requested a review from story645 November 21, 2024 03:37
Copy link
Member

@story645 story645 left a comment

Choose a reason for hiding this comment

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

minor nits to take advantage of sphinx crosslinking, thanks for your patience with this

@story645
Copy link
Member

Sorry for dropping the ball here @jimmyshah - do you have time to finish this up or can I take over?

@story645 story645 force-pushed the update-ninja-install-docs branch from 1b9bcbb to 9b77225 Compare March 20, 2025 22:01
@story645
Copy link
Member

made the requested changes since "no ninja" has been coming up a bunch lately

@story645 story645 dismissed their stale review March 20, 2025 22:02

made the changes

Copy link
Member

@dstansby dstansby left a comment

Choose a reason for hiding this comment

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

Thanks all - this would have helped me recently when I was re-setting up my dev environment 😄

@QuLogic QuLogic added this to the v3.11.0 milestone Mar 21, 2025
@QuLogic QuLogic merged commit a9dc9ac into matplotlib:main Mar 21, 2025
22 checks passed
@QuLogic QuLogic moved this from Waiting for author to Merged in First Time Contributors Mar 21, 2025
@QuLogic
Copy link
Member

QuLogic commented Mar 21, 2025

Thanks @jimmyshah! Congratulations on your first PR to Matplotlib 🎉 We hope to hear from you again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation: devdocs files in doc/devel
Projects
Development

Successfully merging this pull request may close these issues.

5 participants