Skip to content

docs: remove Python 3.11 intersphinx workaround for distutils refs#5225

Closed
Giggitycountless wants to merge 1 commit into
pypa:mainfrom
Giggitycountless:docs/remove-distutils-intersphinx-workaround
Closed

docs: remove Python 3.11 intersphinx workaround for distutils refs#5225
Giggitycountless wants to merge 1 commit into
pypa:mainfrom
Giggitycountless:docs/remove-distutils-intersphinx-workaround

Conversation

@Giggitycountless

Copy link
Copy Markdown

Summary

PR #4078 pinned the intersphinx Python mapping to 3.11 because Python 3.12+ removed distutils from the standard library, causing broken cross-references in the deprecated distutils docs.

Fix

Convert all 199 Sphinx cross-references (:mod:, :class:, :func:, :exc:) to distutils in the deprecated docs to plain code literals. These docs are setuptools-hosted copies and don't need intersphinx resolution.

This allows the intersphinx Python mapping to point to the latest Python 3 docs instead of being pinned to 3.11.

Changes

  • docs/conf.py — Remove Python 3.11 pin, use python=('https://docs.python.org/3', None)
  • docs/deprecated/distutils/*.rst — Convert 199 cross-references to plain code literals

Files modified

  • apiref.rst (159 refs)
  • setupscript.rst (22 refs)
  • extending.rst (7 refs)
  • examples.rst (5 refs)
  • builtdist.rst (4 refs)
  • introduction.rst (1 ref)
  • sourcedist.rst (1 ref)

Fixes #4081

PR pypa#4078 pinned the intersphinx Python mapping to 3.11 because
Python 3.12+ removed distutils from the standard library, causing
broken cross-references in the deprecated distutils docs.

Fix by converting all 199 Sphinx cross-references (:mod:, :class:,
:func:, :exc:) to distutils in the deprecated docs to plain code
literals (distutils.*). These docs are setuptools-hosted copies
and don't need intersphinx resolution.

This allows the intersphinx Python mapping to point to the latest
Python 3 docs instead of being pinned to 3.11.

Fixes pypa#4081
@Giggitycountless

Copy link
Copy Markdown
Author

Closing this PR as it's a trivial documentation change that doesn't add meaningful value. Apologies for the noise.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Remove references to distutils in CPython

1 participant