diff options
author | Éric Araujo <merwok@netwok.org> | 2011-06-10 22:33:38 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-06-10 22:33:38 (GMT) |
commit | 643cb7345f66f0d9dbc1066567ffb1d519026388 (patch) | |
tree | fa095182a816176836bb48d9d0e29dfa96862a98 /Doc/packaging | |
parent | 8474f2901b78cc9afe9487ed9236430f43be18b7 (diff) | |
download | cpython-643cb7345f66f0d9dbc1066567ffb1d519026388.zip cpython-643cb7345f66f0d9dbc1066567ffb1d519026388.tar.gz cpython-643cb7345f66f0d9dbc1066567ffb1d519026388.tar.bz2 |
Allow multiple setup hooks in packaging’s setup.cfg files (#12240).
Original patch by Erik Bray.
Diffstat (limited to 'Doc/packaging')
-rw-r--r-- | Doc/packaging/setupcfg.rst | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Doc/packaging/setupcfg.rst b/Doc/packaging/setupcfg.rst index 463522b..2b01ffb 100644 --- a/Doc/packaging/setupcfg.rst +++ b/Doc/packaging/setupcfg.rst @@ -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 |