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: remove numpy.distutils usages from user-facing docs by frigggga · Pull Request #33197 · numpy/numpy

Conversation

@frigggga

@frigggga frigggga commented Nov 1, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

PR summary

numpy.distutils was removed in 2.5.0, but a few user-facing docs and the f2py --help text still described it or relied on it. This PR cleans up those leftovers. I did not touch the release notes, distutils_status_migration.rst or distutils_equivalents.rst, since those are intentionally historical.

  • doc/source/f2py/windows/intel.rst: the PowerShell example selected the compiler with --f77exec / --f90exec. Those are numpy.distutils-only flags, and the meson backend strips them from argv and ignores them. The example now sets the FC environment variable, which is what f2py's own message and usage.rst recommend.
  • doc/TESTS.rst: the "__init__.py and setup.py" section told readers to register tests through a numpy.distutils configuration() / config.add_subpackage('tests'), and used numpy.testing.Tester, which no longer exists. It now shows PytestTester and py.install_sources(...), copied from numpy/fft.
  • numpy/f2py/f2py2e.py: the --backend help said distutils is supported and the default. It now says meson is the only supported backend and the default, and that distutils falls back to meson. This changes help text only; the parser and tests are unchanged.
  • doc/source/f2py/buildtools/skbuild.rst: reworded the note that pointed readers "away from the internal numpy.distutils methods", so it says to prefer the meson or cmake workflows.
  • doc/source/f2py/buildtools/meson.rst: fixed a typo (details..).
  • doc/source/user/c-info.python-as-glue.rst: the two mentions of "distutils" in the ctypes section now say setuptools / "Python's packaging tools".

Fixes #25597

First time contributor introduction

Hi! First time contributor to this repo. Been using numpy at work every now and then but this is the first time diving into contributing to the repo. Starting small with fixing some documentation.

AI Disclosure

I did use Claude to better understand the requests and potential fixes that can be applied and to provide guidance whenever needed. The changes updated so far have been manually typed and verified.

Sorry, something went wrong.

Uh oh!

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

All reactions
@frigggga
DOC: remove numpy.distutils usages from user-facing docs
776143b
@github-actions github-actions Bot added the 04 - Documentation label Nov 1, 2026
mattip
mattip approved these changes Nov 2, 2026
View reviewed changes

@mattip mattip 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.

LGTM, pending CI success (the PR touches f2py2e.py, so a full CI run is needed)

Sorry, something went wrong.

Uh oh!

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

All reactions
@charris
charris merged commit cd9426f into numpy:main Nov 2, 2026
92 checks passed

Uh oh!

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

@charris

charris commented Nov 2, 2026

Copy link
Copy Markdown
Member

Thanks @frigggga .

All reactions

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

@mattip mattip mattip approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

04 - Documentation

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

DOC: remove numpy.distutils usages from user-facing docs

Uh oh!

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

3 participants

@frigggga @charris @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.