diff options
author | Georg Brandl <georg@python.org> | 2014-10-30 21:26:26 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-30 21:26:26 (GMT) |
commit | 6b4c847c4f299517ec991621710c02459d204f05 (patch) | |
tree | ce305035f3e73d3cf718f5bf445474ef8e9379c1 /Doc/distutils/examples.rst | |
parent | ed14c86facb62c4fb3fcff73c8ea3860c7dc8d29 (diff) | |
download | cpython-6b4c847c4f299517ec991621710c02459d204f05.zip cpython-6b4c847c4f299517ec991621710c02459d204f05.tar.gz cpython-6b4c847c4f299517ec991621710c02459d204f05.tar.bz2 |
Doc: fix default role usage (except in unittest mock docs)
Diffstat (limited to 'Doc/distutils/examples.rst')
-rw-r--r-- | Doc/distutils/examples.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/distutils/examples.rst b/Doc/distutils/examples.rst index b08e023..2ca76a0 100644 --- a/Doc/distutils/examples.rst +++ b/Doc/distutils/examples.rst @@ -286,20 +286,20 @@ Reading the metadata The :func:`distutils.core.setup` function provides a command-line interface that allows you to query the metadata fields of a project through the -`setup.py` script of a given project:: +``setup.py`` script of a given project:: $ python setup.py --name distribute -This call reads the `name` metadata by running the +This call reads the ``name`` metadata by running the :func:`distutils.core.setup` function. Although, when a source or binary distribution is created with Distutils, the metadata fields are written in a static file called :file:`PKG-INFO`. When a Distutils-based project is installed in Python, the :file:`PKG-INFO` file is copied alongside the modules and packages of the distribution under :file:`NAME-VERSION-pyX.X.egg-info`, -where `NAME` is the name of the project, `VERSION` its version as defined -in the Metadata, and `pyX.X` the major and minor version of Python like -`2.7` or `3.2`. +where ``NAME`` is the name of the project, ``VERSION`` its version as defined +in the Metadata, and ``pyX.X`` the major and minor version of Python like +``2.7`` or ``3.2``. You can read back this static file, by using the :class:`distutils.dist.DistributionMetadata` class and its |