Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Redirect to Setuptools' guidance on extension modules
  • Loading branch information
AA-Turner committed Aug 16, 2023
commit 57960df306663eec46e02b0e8bb6a4c3900dfe2d
2 changes: 1 addition & 1 deletion Doc/extending/building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ Building C and C++ Extensions with setuptools

Python 3.12 and newer no longer come with distutils. Please refer to the
``setuptools`` documentation at
https://setuptools.readthedocs.io/en/latest/setuptools.html
https://setuptools.pypa.io/en/latest/userguide/ext_modules.html
to learn more about how build and distribute C/C++ extensions with setuptools.
6 changes: 4 additions & 2 deletions Doc/extending/windows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ Windows programmer learning to build Python extensions and the Unix programmer
interested in producing software which can be successfully built on both Unix
and Windows.

Module authors are encouraged to use the distutils approach for building
extension modules, instead of the one described in this section. You will still
Module authors are encouraged to use the ``setuptools`` approach for `building
extension modules`_, instead of the one described in this section. You will still
need the C compiler that was used to build Python; typically Microsoft Visual
C++.

.. _building extension modules: https://setuptools.pypa.io/en/latest/userguide/ext_modules.html

.. note::

This chapter mentions a number of filenames that include an encoded Python
Expand Down