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 — [WIP] DOC: remove numpy.distutils references from f2py docs by eagunn · Pull Request #26490 · numpy/numpy

Conversation

@eagunn

@eagunn eagunn commented May 20, 2024 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

This is an installment in addressing ticket #25597, tackling only the f2py documentation.

This is a draft only. I will need some feedback on my edits before this change is ready for CI. @HaoZeke, when you have time could you review, using my list below to point out changes that may surprise or displease you.

[skip actions] [skip azp] [skip cirrus]

Context

This change is not as simple or local as I originally expected.

  • In f2py/buildtools/index.rst, I pulled the distutils text near the top but then had a stab of conscience and added a brief note toward the bottom with a breadcrumb leading back to the last stable version that contained the distutils info. It seemed potentially disorienting to write as if distutils had never existed. But I'll be happy to pull the note if it is deemed unnecessary.
  • I changed the note at the top of f2py/buildtools/meson.rst to make it more coherent (to me).
  • I had to change two files outside of the f2py/buildtools folder in order to delete references to the now-deleted content.
  • (Mea culpa in advance. Simply say if this is a change too far.) I converted an orphan bullet in f2py/f2py.getting-started.rst into a paragraph.

Sorry, something went wrong.

Uh oh!

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

All reactions
@eagunn
DOC: remove numpy.distutils references from f2py docs
f254a88
This is an installment in addressing ticket numpy#25597,
tackling only the f2py documentation.

This is a draft only. I will need some feedback on my edits
before this change is ready for CI.

[skip ci] [skip actions] [skip azp] [skip cirrus]
@eagunn

eagunn commented May 20, 2024

Copy link
Copy Markdown
Contributor Author

When someone has time, possibly @HaoZeke or @rgommers, I could use some guidance on how to address the two pipeline failures. Both appear to be failing in an "install utilities" step. I'm not sure how my changes would drive such a failure.

All reactions

Sorry, something went wrong.

Uh oh!

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

@rgommers

rgommers commented May 20, 2024

Copy link
Copy Markdown
Member

I'm not sure how my changes would drive such a failure.

Not sure since I have never seen this before. Your commit message may be related, it contains:

[skip ci] [skip actions] [skip azp] [skip cirrus]

all those are individually correct, but [skip ci] shouldn't be used here since it's a superset of the others. Maybe two skip commands confuse Azure.

If you want only the docs to build on CircleCI, use: [skip actions] [skip azp] [skip cirrus]

All reactions

Sorry, something went wrong.

Uh oh!

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

@rgommers rgommers added 04 - Documentation component: numpy.f2py labels May 20, 2024
@eagunn
I'm attempting a no-op commit (i.e.) no files changed to see if removing
6c93497
the redundant skip-CI tag from my original commit will fix the
Azure pipeline failures my pull request is experiencing.

Here's the belt without the suspenders:
[skip actions] [skip azp] [skip cirrus]# Please enter the commit message for your changes. Lines starting
@eagunn

eagunn commented May 20, 2024

Copy link
Copy Markdown
Contributor Author

@rgommers You nailed it in one. Thank you.

All reactions

Sorry, something went wrong.

Uh oh!

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

@eagunn

eagunn commented May 22, 2024

Copy link
Copy Markdown
Contributor Author

In looking for additional references to distutils, I find that I missed:

  • several mentions in doc/source/f2py/usage.rst
  • one in doc/source/f2py/windows/index.rst

It would seem to make sense for those files to be cleaned up in this PR.

Unfortunately, I'm traveling most days from now till 13 June. If I get feedback from @HaoZeke on the changes listed in my Context section above, I'll get back to work on this in mid-June and do my best to incorporate these missed files. If, instead, getting distutils references cleaned up becomes a priority for someone else, I'd be happy to have them incorporate some or all of my changes into another PR and this one be closed/abandoned.

All reactions

Sorry, something went wrong.

Uh oh!

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

HaoZeke
HaoZeke reviewed May 26, 2024
View reviewed changes
Comment thread doc/source/f2py/buildtools/index.rst
Comment on lines +83 to +88
.. note::

The current default build system for ``f2py`` is ``meson``.
If you need information about the migration from ``numpy.distutils`` to
``meson``, refer to this section in the Version 1.26 documentation.

@HaoZeke HaoZeke May 26, 2024

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.

I think we should have a link here to the document in question. Also, possibly in scope for this PR is that we still have distutils as the default if the Python version is less than 3.12 (see f2py2e.py around 556).

Sorry, something went wrong.

Uh oh!

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

All reactions

@HaoZeke HaoZeke May 26, 2024

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.

In fact, perhaps until 3.12 becomes the lowest supported version we should keep distutils-to-meson.rst since (most) F2PY users probably haven't transitioned.

Sorry, something went wrong.

Uh oh!

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

All reactions
@HaoZeke

HaoZeke commented May 26, 2024

Copy link
Copy Markdown
Member

Hi @eagunn, I took a quick look, and raised some discussion points, other than that the changes look good, hope travel is going well!

All reactions

Sorry, something went wrong.

Uh oh!

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

@eagunn eagunn mentioned this pull request Jun 7, 2024
DOC: remove numpy.distutils usages from user-facing docs #25597
Closed
@mattip

mattip commented Jul 3, 2024

Copy link
Copy Markdown
Member

@eagunn is this still active?

All reactions

Sorry, something went wrong.

Uh oh!

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

@eagunn

eagunn commented Jul 3, 2024

Copy link
Copy Markdown
Contributor Author

@mattip, Thanks for asking. I haven't abandoned it. However, while I was waiting for input I decided to tackle a less complicated set of changes so I could get through the commit/PR/merge cycle a couple of times. (And, I just had my very first PR merged. Huzzah!)

I hope to get back to this PR next week, take on board the comments above, and then simplify/finalize it.

All reactions

Sorry, something went wrong.

Uh oh!

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

@eagunn eagunn closed this Sep 19, 2024
@eagunn

eagunn commented Sep 19, 2024

Copy link
Copy Markdown
Contributor Author

I'm closing this PR. It was a poor choice for a first-issue for me to work on. There are some issues of technical substance and of timing that I still do not understand. I'm preserving the branch in my own repo and @HaoZeke's helpful comments in case I want to work on it again later. For now, though, it is cruft in this repo that we don't need to have lying around.

InessaPawson reacted with thumbs up emoji HaoZeke reacted with rocket emoji
All reactions
  • 👍 1 reaction
  • 🚀 1 reaction

Sorry, something went wrong.

Uh oh!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@HaoZeke HaoZeke HaoZeke left review comments

Uh oh!

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

Assignees

No one assigned

Labels

04 - Documentation component: numpy.f2py

Projects

NumPy first-time contributor PRs
Status: Completed

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.

4 participants

@eagunn @rgommers @HaoZeke @mattip
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 01402792 — 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.