Skip to content

Commit

Permalink
Docs: use Python 3.11 inventory to avoid errors with distutils refere…
Browse files Browse the repository at this point in the history
…nces
  • Loading branch information
abravalheri committed Oct 12, 2023
1 parent 981d20a commit 3bfb4ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,12 @@

# Allow linking objects on other Sphinx sites seamlessly:
intersphinx_mapping.update(
python=('https://docs.python.org/3', None),
# python=('https://docs.python.org/3', None),
python=('https://docs.python.org/3.11/', None),
# ^-- Python 3.11 is required because it still contains `distutils`.
# Just leaving it as `3` would imply 3.12+, but that causes an
# error with the cross references to disutils functions.
# Inventory cache may cause errors, deleting it solves the problem.
)

# Add support for the unreleased "next-version" change notes
Expand Down

0 comments on commit 3bfb4ba

Please sign in to comment.