summaryrefslogtreecommitdiffstats
path: root/Doc/packaging
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-09-01 04:29:11 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-09-01 04:29:11 (GMT)
commit336b4e4ff3edea750eb79bc59dab0f63141a1caa (patch)
treea11e7805f34c0ec9f1a14d1c67fff9dbf553af30 /Doc/packaging
parentb8edbdf4b986048e48b689baf339023c38384ae7 (diff)
downloadcpython-336b4e4ff3edea750eb79bc59dab0f63141a1caa.zip
cpython-336b4e4ff3edea750eb79bc59dab0f63141a1caa.tar.gz
cpython-336b4e4ff3edea750eb79bc59dab0f63141a1caa.tar.bz2
Minor improvement to extensions section in setup.cfg.
The right-hand part in [extension: foo] is now used as the name of the extension module. (I changed the separator from = to : and allowed whitespace to make the sections look nicer.)
Diffstat (limited to 'Doc/packaging')
-rw-r--r--Doc/packaging/setupcfg.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/packaging/setupcfg.rst b/Doc/packaging/setupcfg.rst
index d5bc3e3..66a61ec 100644
--- a/Doc/packaging/setupcfg.rst
+++ b/Doc/packaging/setupcfg.rst
@@ -756,8 +756,7 @@ needs to have its options defined in a dedicated section. Here's an example::
[files]
packages = coconut
- [extension=_fastcoconut]
- name = coconut._fastcoconut
+ [extension: coconut._fastcoconut]
language = cxx
sources = cxx_src/cononut_utils.cxx
cxx_src/python_module.cxx
@@ -768,8 +767,10 @@ needs to have its options defined in a dedicated section. Here's an example::
-DGECODE_VERSION=$(./gecode_version) -- sys.platform != 'win32'
/DGECODE_VERSION='win32' -- sys.platform == 'win32'
-The section name must start with ``extension=``; the righ-hand part is currently
-discarded. Valid fields and their values are listed in the documentation of the
+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.
+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
addition, multi-line values accept environment markers on each line, after a