diff options
author | Éric Araujo <merwok@netwok.org> | 2011-09-01 05:01:13 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-09-01 05:01:13 (GMT) |
commit | d9299e97ab9ff7fa8f158740be61572e04a936fa (patch) | |
tree | 95aa72197d836016e9398145ef209fb97f28be00 /Doc | |
parent | 336b4e4ff3edea750eb79bc59dab0f63141a1caa (diff) | |
download | cpython-d9299e97ab9ff7fa8f158740be61572e04a936fa.zip cpython-d9299e97ab9ff7fa8f158740be61572e04a936fa.tar.gz cpython-d9299e97ab9ff7fa8f158740be61572e04a936fa.tar.bz2 |
Minor improvement to extensions in setup.cfg: check parent package
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/packaging/setupcfg.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/packaging/setupcfg.rst b/Doc/packaging/setupcfg.rst index 66a61ec..ddec41a 100644 --- a/Doc/packaging/setupcfg.rst +++ b/Doc/packaging/setupcfg.rst @@ -769,7 +769,9 @@ needs to have its options defined in a dedicated section. Here's an example:: The section name must start with ``extension:``; the right-hand part is used as the full name (including a parent package, if any) of the extension. Whitespace -around the extension name is allowed. +around the extension name is allowed. If the extension module is not standalone +(e.g. ``_bisect``) but part of a package (e.g. ``thing._speedups``), the parent +package must be listed in the ``packages`` field. Valid fields and their values are listed in the documentation of the :class:`packaging.compiler.extension.Extension` class; values documented as Python lists translate to multi-line values in the configuration file. In |