summaryrefslogtreecommitdiffstats
path: root/Doc/distutils
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-04-16 04:59:38 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-04-16 04:59:38 (GMT)
commit00ccacc8db8194f15d8af26b788ec36314b990d1 (patch)
tree98bf16d9eeb894fdcb464eed646d53b4d366bfe7 /Doc/distutils
parentb4912b8ed367e540ee060fe912f841cc764fd293 (diff)
downloadcpython-00ccacc8db8194f15d8af26b788ec36314b990d1.zip
cpython-00ccacc8db8194f15d8af26b788ec36314b990d1.tar.gz
cpython-00ccacc8db8194f15d8af26b788ec36314b990d1.tar.bz2
Issue #26638: Fix links to some CLI options and section headings
* Disable inappropriate links to Python interpreter options * Correct link to CLI section in zipapp * Make CLI section label in timeit less ambiguous
Diffstat (limited to 'Doc/distutils')
-rw-r--r--Doc/distutils/apiref.rst8
-rw-r--r--Doc/distutils/configfile.rst2
2 files changed, 5 insertions, 5 deletions
diff --git a/Doc/distutils/apiref.rst b/Doc/distutils/apiref.rst
index 7e2cfe3..e66835a 100644
--- a/Doc/distutils/apiref.rst
+++ b/Doc/distutils/apiref.rst
@@ -319,12 +319,12 @@ This module provides the following functions.
.. function:: gen_preprocess_options(macros, include_dirs)
- Generate C pre-processor options (:option:`-D`, :option:`-U`, :option:`-I`) as
+ Generate C pre-processor options (:option:`-D`, :option:`!-U`, :option:`!-I`) as
used by at least two types of compilers: the typical Unix compiler and Visual
C++. *macros* is the usual thing, a list of 1- or 2-tuples, where ``(name,)``
- means undefine (:option:`-U`) macro *name*, and ``(name, value)`` means define
+ means undefine (:option:`!-U`) macro *name*, and ``(name, value)`` means define
(:option:`-D`) macro *name* to *value*. *include_dirs* is just a list of
- directory names to be added to the header file search path (:option:`-I`).
+ directory names to be added to the header file search path (:option:`!-I`).
Returns a list of command-line options suitable for either Unix compilers or
Visual C++.
@@ -799,7 +799,7 @@ This module provides the :class:`UnixCCompiler` class, a subclass of
* library search directories specified with :option:`-Ldir`
-* compile handled by :program:`cc` (or similar) executable with :option:`-c`
+* compile handled by :program:`cc` (or similar) executable with :option:`!-c`
option: compiles :file:`.c` to :file:`.o`
* link static library handled by :program:`ar` command (possibly with
diff --git a/Doc/distutils/configfile.rst b/Doc/distutils/configfile.rst
index 8faffe6..51d8897 100644
--- a/Doc/distutils/configfile.rst
+++ b/Doc/distutils/configfile.rst
@@ -51,7 +51,7 @@ option values can be split across multiple lines simply by indenting the
continuation lines.
You can find out the list of options supported by a particular command with the
-universal :option:`--help` option, e.g. ::
+universal :option:`!--help` option, e.g. ::
> python setup.py --help build_ext
[...]