GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — DOC: Update building docs to use Meson by melissawm · Pull Request #24573 · numpy/numpy

Conversation

@melissawm

@melissawm melissawm commented Aug 29, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

All reactions
@melissawm melissawm added 04 - Documentation Meson Items related to the introduction of Meson as the new build system for NumPy labels Aug 29, 2023
@melissawm
melissawm force-pushed the meson-docs branch 2 times, most recently from 07cf915 to 60da2d7 Compare August 29, 2023 02:04
HaoZeke
HaoZeke reviewed Aug 29, 2023
View reviewed changes

@HaoZeke HaoZeke left a comment

Copy link
Copy Markdown
Member

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.

All reactions
Comment thread doc/source/user/building.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread doc/source/user/building.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

rgommers
rgommers reviewed Aug 29, 2023
View reviewed changes

@rgommers rgommers left a comment

Copy link
Copy Markdown
Member

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
All reactions
  • 👍 1 reaction
Comment thread doc/source/dev/development_environment.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread doc/source/dev/howto_build_docs.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread doc/source/dev/howto_build_docs.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread doc/source/user/building.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

@ngoldbaum

ngoldbaum commented Aug 29, 2023

Copy link
Copy Markdown
Member

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

charris
charris reviewed Aug 29, 2023
View reviewed changes
Comment thread doc/RELEASE_WALKTHROUGH.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Aug 29, 2023
@charris charris added this to the 1.26.0 release milestone Aug 29, 2023
@melissawm

melissawm commented Aug 31, 2023

Copy link
Copy Markdown
Member Author

Here's a second take - I believe I adressed most of the comments, let me know if there's anything else that is needed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ngoldbaum
ngoldbaum reviewed Aug 31, 2023
View reviewed changes
Comment thread doc/source/dev/development_environment.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

melissawm and others added 6 commits September 1, 2023 11:08
@melissawm @rgommers
DOC: Update building docs to use Meson
3ca9e09
Removes mentions of runtests.py when appropriate and replaces them with
equivalent spin commands.

[skip travis][skip azp][skip cirrus]
@melissawm @rgommers
DOC: Clean up Meson building documentation
ef13bc7
@rgommers
DOC: more fixes to build docs
8a3054f
@rgommers
DOC: fixes to ensure all docs commands work
d4fab5d
@rgommers
DOC: remove spin usage from user/building.rst
27a630e
@rgommers
DOC: more fixes for compilers and BLAS/LAPACK in INSTALL.rst
0b163c2
[skip cirrus] [skip azp] [skip actions]
rgommers
rgommers reviewed Sep 1, 2023
View reviewed changes

@rgommers rgommers left a comment

Copy link
Copy Markdown
Member

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
All reactions
  • 🎉 1 reaction
Comment thread doc/source/user/building.rst Outdated
*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

@rgommers rgommers Sep 1, 2023

Copy link
Copy Markdown
Member

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.

All reactions
Comment thread benchmarks/README.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread benchmarks/README.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

@rgommers
rgommers force-pushed the meson-docs branch from 262cd1f to 0b163c2 Compare September 1, 2023 10:11
@melissawm

melissawm commented Sep 1, 2023

Copy link
Copy Markdown
Member Author

Thanks for catching those!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

rgommers
rgommers approved these changes Sep 1, 2023
View reviewed changes

@rgommers rgommers left a comment

Copy link
Copy Markdown
Member

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
All reactions
  • 🚀 1 reaction
@rgommers
rgommers merged commit 8381273 into numpy:main Sep 1, 2023
@rgommers rgommers mentioned this pull request Sep 1, 2023
Tracking issue: defaulting to Meson - follow-up tasks #23981
Closed
18 of 20 tasks
charris pushed a commit to charris/numpy that referenced this pull request Sep 1, 2023
@melissawm @rgommers @charris
DOC: Update building docs to use Meson (numpy#24573)
5e63c86
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 charris mentioned this pull request Sep 1, 2023
DOC: Update building docs to use Meson #24614
Merged
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Sep 1, 2023
@charris charris removed this from the 1.26.0 release milestone Sep 1, 2023
charris pushed a commit to charris/numpy that referenced this pull request Nov 11, 2023
@melissawm @rgommers @charris
DOC: Update building docs to use Meson (numpy#24573)
207be9d
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]>
@TimotheusBachinger TimotheusBachinger mentioned this pull request Nov 25, 2024
fix build #27836
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@charris charris charris left review comments
@mattip mattip mattip left review comments
@ngoldbaum ngoldbaum ngoldbaum left review comments
@HaoZeke HaoZeke HaoZeke left review comments
@rgommers rgommers rgommers approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

04 - Documentation Meson Items related to the introduction of Meson as the new build system for NumPy

Projects

None yet

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.

6 participants

@melissawm @ngoldbaum @charris @rgommers @mattip @HaoZeke
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.