mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Branch merge
This commit is contained in:
commit
bc18532eee
8 changed files with 156 additions and 77 deletions
|
|
@ -83,7 +83,7 @@ The class can be used to simulate nested scopes and is useful in templating.
|
|||
creating subcontexts that can be updated without altering values in any
|
||||
of the parent mappings.
|
||||
|
||||
.. attribute:: parents()
|
||||
.. method:: parents()
|
||||
|
||||
Returns a new :class:`ChainMap` containing all of the maps in the current
|
||||
instance except the first one. This is useful for skipping the first map
|
||||
|
|
|
|||
|
|
@ -176,15 +176,19 @@ compilers
|
|||
compilers =
|
||||
hotcompiler.SmartCCompiler
|
||||
|
||||
setup_hook
|
||||
defines a callable that will be called right after the
|
||||
:file:`setup.cfg` file is read. The callable receives the configuration
|
||||
in form of a mapping and can make some changes to it. *optional*
|
||||
setup_hooks
|
||||
Defines a list of callables to be called right after the :file:`setup.cfg`
|
||||
file is read, before any other processing. The callables are executed in the
|
||||
order they're found in the file; if one of them cannot be found, tools should
|
||||
not stop, but for example produce a warning and continue with the next line.
|
||||
Each callable receives the configuration as a dictionary (keys are
|
||||
:file:`setup.cfg` sections, values are dictionaries of fields) and can make
|
||||
any changes to it. *optional*, *multi*
|
||||
|
||||
Example::
|
||||
|
||||
[global]
|
||||
setup_hook = package.setup.customize_dist
|
||||
setup_hooks = package.setup.customize_dist
|
||||
|
||||
|
||||
Metadata
|
||||
|
|
@ -285,6 +289,7 @@ One extra field not present in PEP 345 is supported:
|
|||
|
||||
description-file
|
||||
Path to a text file that will be used to fill the ``description`` field.
|
||||
Multiple values are accepted; they must be separated by whitespace.
|
||||
``description-file`` and ``description`` are mutually exclusive. *optional*
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue