@@ -62,9 +62,9 @@ code instead of hardcoding path separators::
6262Listing whole packages
6363======================
6464
65- The :option: ` packages ` option tells the Distutils to process (build, distribute,
65+ The `` packages ` ` option tells the Distutils to process (build, distribute,
6666install, etc.) all pure Python modules found in each package mentioned in the
67- :option: ` packages ` list. In order to do this, of course, there has to be a
67+ `` packages ` ` list. In order to do this, of course, there has to be a
6868correspondence between package names and directories in the filesystem. The
6969default correspondence is the most obvious one, i.e. package :mod: `distutils ` is
7070found in the directory :file: `distutils ` relative to the distribution root.
@@ -75,7 +75,7 @@ the directory where your setup script lives. If you break this promise, the
7575Distutils will issue a warning but still process the broken package anyway.
7676
7777If you use a different convention to lay out your source directory, that's no
78- problem: you just have to supply the :option: ` package_dir ` option to tell the
78+ problem: you just have to supply the `` package_dir ` ` option to tell the
7979Distutils about your convention. For example, say you keep all Python source
8080under :file: `lib `, so that modules in the "root package" (i.e., not in any
8181package at all) are in :file: `lib `, modules in the :mod: `foo ` package are in
@@ -94,13 +94,13 @@ written in the setup script as ::
9494
9595 package_dir = {'foo': 'lib'}
9696
97- A ``package: dir `` entry in the :option: ` package_dir ` dictionary implicitly
97+ A ``package: dir `` entry in the `` package_dir ` ` dictionary implicitly
9898applies to all packages below *package *, so the :mod: `foo.bar ` case is
9999automatically handled here. In this example, having ``packages = ['foo',
100100'foo.bar'] `` tells the Distutils to look for :file: `lib/__init__.py ` and
101- :file: `lib/bar/__init__.py `. (Keep in mind that although :option: ` package_dir `
101+ :file: `lib/bar/__init__.py `. (Keep in mind that although `` package_dir ` `
102102applies recursively, you must explicitly list all packages in
103- :option: ` packages `: the Distutils will *not * recursively scan your source tree
103+ `` packages ` `: the Distutils will *not * recursively scan your source tree
104104looking for any directory with an :file: `__init__.py ` file.)
105105
106106
@@ -120,7 +120,7 @@ This describes two modules, one of them in the "root" package, the other in the
120120:mod: `pkg ` package. Again, the default package/directory layout implies that
121121these two modules can be found in :file: `mod1.py ` and :file: `pkg/mod2.py `, and
122122that :file: `pkg/__init__.py ` exists as well. And again, you can override the
123- package/directory correspondence using the :option: ` package_dir ` option.
123+ package/directory correspondence using the `` package_dir ` ` option.
124124
125125
126126.. _describing-extensions :
@@ -138,7 +138,7 @@ directories, libraries to link with, etc.).
138138.. XXX read over this section
139139
140140 All of this is done through another keyword argument to :func: `setup `, the
141- :option: ` ext_modules ` option. :option: ` ext_modules ` is just a list of
141+ `` ext_modules `` option. `` ext_modules ` ` is just a list of
142142:class: `~distutils.core.Extension ` instances, each of which describes a
143143single extension module.
144144Suppose your distribution includes a single extension, called :mod: `foo ` and
@@ -181,7 +181,7 @@ in the filesystem (and therefore where in Python's namespace hierarchy) the
181181resulting extension lives.
182182
183183If you have a number of extensions all in the same package (or all under the
184- same base package), use the :option: ` ext_package ` keyword argument to
184+ same base package), use the `` ext_package ` ` keyword argument to
185185:func: `setup `. For example, ::
186186
187187 setup(...,
@@ -336,24 +336,24 @@ Other options
336336
337337There are still some other options which can be used to handle special cases.
338338
339- The :option: ` optional ` option is a boolean; if it is true,
339+ The `` optional ` ` option is a boolean; if it is true,
340340a build failure in the extension will not abort the build process, but
341341instead simply not install the failing extension.
342342
343- The :option: ` extra_objects ` option is a list of object files to be passed to the
343+ The `` extra_objects ` ` option is a list of object files to be passed to the
344344linker. These files must not have extensions, as the default extension for the
345345compiler is used.
346346
347- :option: ` extra_compile_args ` and :option: ` extra_link_args ` can be used to
347+ `` extra_compile_args `` and `` extra_link_args ` ` can be used to
348348specify additional command line options for the respective compiler and linker
349349command lines.
350350
351- :option: ` export_symbols ` is only useful on Windows. It can contain a list of
351+ `` export_symbols ` ` is only useful on Windows. It can contain a list of
352352symbols (functions or variables) to be exported. This option is not needed when
353353building compiled extensions: Distutils will automatically add ``initmodule ``
354354to the list of exported symbols.
355355
356- The :option: ` depends ` option is a list of files that the extension depends on
356+ The `` depends ` ` option is a list of files that the extension depends on
357357(for example header files). The build command will call the compiler on the
358358sources to rebuild extension if any on this files has been modified since the
359359previous build.
@@ -449,7 +449,7 @@ to refer to the current interpreter location. By default, it is replaced with
449449the current interpreter location. The :option: `--executable ` (or :option: `-e `)
450450option will allow the interpreter path to be explicitly overridden.
451451
452- The :option: ` scripts ` option simply is a list of files to be handled in this
452+ The `` scripts ` ` option simply is a list of files to be handled in this
453453way. From the PyXML setup script::
454454
455455 setup(...,
@@ -514,11 +514,11 @@ The corresponding call to :func:`setup` might be::
514514Installing Additional Files
515515===========================
516516
517- The :option: ` data_files ` option can be used to specify additional files needed
517+ The `` data_files ` ` option can be used to specify additional files needed
518518by the module distribution: configuration files, message catalogs, data files,
519519anything which doesn't fit in the previous categories.
520520
521- :option: ` data_files ` specifies a sequence of (*directory *, *files *) pairs in the
521+ `` data_files ` ` specifies a sequence of (*directory *, *files *) pairs in the
522522following way::
523523
524524 setup(...,
@@ -539,7 +539,7 @@ modules). Each file name in *files* is interpreted relative to the
539539directory information from *files * is used to determine the final location of
540540the installed file; only the name of the file is used.
541541
542- You can specify the :option: ` data_files ` options as a simple sequence of files
542+ You can specify the `` data_files ` ` options as a simple sequence of files
543543without specifying a target directory, but this is not recommended, and the
544544:command: `install ` command will print a warning in this case. To install data
545545files directly in the target directory, an empty string should be given as the
@@ -650,7 +650,7 @@ information is sometimes used to indicate sub-releases. These are
6506501.0.1a2
651651 the second alpha release of the first patch version of 1.0
652652
653- :option: ` classifiers ` are specified in a Python list::
653+ `` classifiers ` ` are specified in a Python list::
654654
655655 setup(...,
656656 classifiers=[
0 commit comments