Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d7e44b6

Browse files
committed
Issue #17264: Fix cross refs and a markup error in extending/building.rst
2 parents 734423b + 705c0e3 commit d7e44b6

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Doc/extending/building.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ It is possible to export multiple modules from a single shared library by
4040
defining multiple initialization functions. However, importing them requires
4141
using symbolic links or a custom importer, because by default only the
4242
function corresponding to the filename is found.
43-
See :PEP:`489#multiple-modules-in-one-library` for details.
43+
See the *"Multiple modules in one library"* section in :pep:`489` for details.
4444
4545
4646
.. highlightlang:: c
@@ -88,7 +88,8 @@ distutils; this section explains building extension modules only.
8888
8989
It is common to pre-compute arguments to :func:`setup`, to better structure the
9090
driver script. In the example above, the ``ext_modules`` argument to
91-
:func:`setup` is a list of extension modules, each of which is an instance of
91+
:func:`~distutils.core.setup` is a list of extension modules, each of which is
92+
an instance of
9293
the :class:`~distutils.extension.Extension`. In the example, the instance
9394
defines an extension named ``demo`` which is build by compiling a single source
9495
file, :file:`demo.c`.
@@ -119,7 +120,8 @@ example below. ::
119120
ext_modules = [module1])
120121

121122

122-
In this example, :func:`setup` is called with additional meta-information, which
123+
In this example, :func:`~distutils.core.setup` is called with additional
124+
meta-information, which
123125
is recommended when distribution packages have to be built. For the extension
124126
itself, it specifies preprocessor defines, include directories, library
125127
directories, and libraries. Depending on the compiler, distutils passes this
@@ -150,8 +152,7 @@ Module maintainers should produce source packages; to do so, they run ::
150152
python setup.py sdist
151153

152154
In some cases, additional files need to be included in a source distribution;
153-
this is done through a :file:`MANIFEST.in` file; see the distutils documentation
154-
for details.
155+
this is done through a :file:`MANIFEST.in` file; see :ref:`manifest` for details.
155156

156157
If the source distribution has been build successfully, maintainers can also
157158
create binary distributions. Depending on the platform, one of the following

0 commit comments

Comments
 (0)