GeezerVison is showing github.com — DOC: Update building docs to use Meson by melissawm · Pull Request #24573 · numpy/numpy
Conversation
melissawm
commented
Aug 29, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Removes mentions of runtests.py when appropriate and replaces them with equivalent spin commands.
A few pending questions:
- What to do with the custom blas/lapack instructions? (I know we talked about ditching those in favor of the SciPy documentation but our docs seem much more detailed and I'm hesitant to just delete.
- I haven't updated https://numpy.org/doc/stable/dev/development_advanced_debugging.html yet, could do it on a follow-up or on a separate commit.
- There are a couple of mentions to site.cfg that I didn't remove yet either since I'm not 100% sure of the replacement (if any).
I haven't completely redone the docs to mirror SciPy as I still feel there is justification for the current organization, but I'm happy to reconsider.
Partly addresses #23981
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, barring two small comments.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Melissa! This looks good to me to merge, after the minor open comments from Rohit and me are addressed. Larger changes can be done in follow-up PRs, this is already very helpful.
What to do with the custom blas/lapack instructions? (I know we talked about ditching those in favor of the SciPy documentation but our docs seem much more detailed and I'm hesitant to just delete.
None of that applies anymore, and there's no replacement right now beyond what's in the SciPy docs. So it should be deleted. Once there are replacement CLI flags, I'll add them to the docs in the same PR as their implementation.
I haven't updated https://numpy.org/doc/stable/dev/development_advanced_debugging.html yet, could do it on a follow-up or on a separate commit.
That's fine. That section looks a bit out of date, it'd need more work beyond updating the couple of runtests.py usages (e.g., use of sanitizers changed/improved). I think we can leave that alone here, and perhaps ask Nathan or Sebastian to update it.
There are a couple of mentions to site.cfg that I didn't remove yet either since I'm not 100% sure of the replacement (if any).
The replacement is a .pc file, as documented in http://scipy.github.io/devdocs/building/blas_lapack.html#using-pkg-config-to-detect-libraries-in-a-nonstandard-location.
I haven't completely redone the docs to mirror SciPy as I still feel there is justification for the current organization, but I'm happy to reconsider.
I think that's fine to leave for now, but my opinion is still that there's very little of value here. The build options really are pretty much identical. Organization wise, I find the NumPy docs very difficult to navigate (e.g., both the sidebar and the start of the page contents at https://numpy.org/devdocs/dev/index.html are very confusing). In addition, the NumPy docs don't help the user/contributor with system dependencies for Windows/macOS/Linux, using conda, other system dependencies, or a simple quickstart to contributing. And things like pip install build_dependencies.txt without taking into account conda users are just plain wrong and will break the contributors environment.
I'm not seeing what to retain from the current docs, but I think you have some concrete sections in mind. I suggest opening a new follow-up issue to identify those. I can't say much more without knowing what those sections are.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
melissawm reacted with thumbs up emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I think we can leave that alone here, and perhaps ask Nathan or Sebastian to update it.
After this gets merged I'll try to do it as a followup.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Here's a second take - I believe I adressed most of the comments, let me know if there's anything else that is needed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Removes mentions of runtests.py when appropriate and replaces them with
equivalent spin commands.
[skip travis][skip azp][skip cirrus]
[skip cirrus] [skip azp] [skip actions]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @melissawm, the updates looked good. On a closer read I found some more issues with detailed commands, and one conceptual one (use of spin in the user guide rather than the contribution guidelines). I'll push some fixes.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
melissawm reacted with hooray emoji
|
|
*Note: for build instructions to do development work on NumPy itself, see*
|
|
|
:ref:`development-environment`.
|
|
|
To build NumPy with meson, you can use the
|
|
|
`spin <https://github.com/scientific-python/spin>`_ utility. First, install the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look right. spin should only be used in the development/contribution instructions, it is not useful to users who simply want to build from source. And it doesn't have the -n/--no-build flag like runtests.py does, so it can't be used right now to run the tests on a numpy package installed in the user's environment.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks for catching those!
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right, seems we're all good here now. Let's squash-merge so this is easy to backport. Thanks Melissa & all reviewers!
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
melissawm reacted with rocket emoji
charris
pushed a commit
to charris/numpy
that referenced
this pull request
Sep 1, 2023
Removes mentions of runtests.py when appropriate and replaces them with
equivalent spin commands (or pytest in a few cases).
[skip azp]
Co-authored-by: Ralf Gommers <[email protected]>
charris
pushed a commit
to charris/numpy
that referenced
this pull request
Nov 11, 2023
Removes mentions of runtests.py when appropriate and replaces them with
equivalent spin commands (or pytest in a few cases).
[skip azp]
Co-authored-by: Ralf Gommers <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|