@@ -40,7 +40,7 @@ It is possible to export multiple modules from a single shared library by
4040defining multiple initialization functions. However, importing them requires
4141using symbolic links or a custom importer, because by default only the
4242function 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
9090driver 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
9293the :class: `~distutils.extension.Extension `. In the example, the instance
9394defines an extension named ``demo `` which is build by compiling a single source
9495file, :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
123125is recommended when distribution packages have to be built. For the extension
124126itself, it specifies preprocessor defines, include directories, library
125127directories, 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
152154In 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
156157If the source distribution has been build successfully, maintainers can also
157158create binary distributions. Depending on the platform, one of the following
0 commit comments