@@ -572,15 +572,15 @@ extension modules.
572572 the following keyword arguments in its constructor:
573573
574574 +------------------------+--------------------------------+---------------------------+
575- | argument name | value | type [ # ]_ |
575+ | argument name | value | type |
576576 +========================+================================+===========================+
577577 | *name * | the full name of the | string |
578578 | | extension, including any | |
579579 | | packages --- i.e. *not * a | |
580580 | | filename or pathname, but | |
581581 | | Python dotted name | |
582582 +------------------------+--------------------------------+---------------------------+
583- | *sources * | list of source filenames, | string |
583+ | *sources * | list of source filenames, | list of strings |
584584 | | relative to the distribution | |
585585 | | root (where the setup script | |
586586 | | lives), in Unix form (slash- | |
@@ -593,12 +593,12 @@ extension modules.
593593 | | as source for a Python | |
594594 | | extension. | |
595595 +------------------------+--------------------------------+---------------------------+
596- | *include_dirs * | list of directories to search | string |
596+ | *include_dirs * | list of directories to search | list of strings |
597597 | | for C/C++ header files (in | |
598598 | | Unix form for portability) | |
599599 +------------------------+--------------------------------+---------------------------+
600- | *define_macros * | list of macros to define; each | (string, string) tuple or |
601- | | macro is defined using a | (name, `` None ``) |
600+ | *define_macros * | list of macros to define; each | list of tuples |
601+ | | macro is defined using a | |
602602 | | 2-tuple ``(name, value) ``, | |
603603 | | where *value * is | |
604604 | | either the string to define it | |
@@ -609,31 +609,31 @@ extension modules.
609609 | | on Unix C compiler command | |
610610 | | line) | |
611611 +------------------------+--------------------------------+---------------------------+
612- | *undef_macros * | list of macros to undefine | string |
612+ | *undef_macros * | list of macros to undefine | list of strings |
613613 | | explicitly | |
614614 +------------------------+--------------------------------+---------------------------+
615- | *library_dirs * | list of directories to search | string |
615+ | *library_dirs * | list of directories to search | list of strings |
616616 | | for C/C++ libraries at link | |
617617 | | time | |
618618 +------------------------+--------------------------------+---------------------------+
619- | *libraries * | list of library names (not | string |
619+ | *libraries * | list of library names (not | list of strings |
620620 | | filenames or paths) to link | |
621621 | | against | |
622622 +------------------------+--------------------------------+---------------------------+
623- | *runtime_library_dirs * | list of directories to search | string |
623+ | *runtime_library_dirs * | list of directories to search | list of strings |
624624 | | for C/C++ libraries at run | |
625625 | | time (for shared extensions, | |
626626 | | this is when the extension is | |
627627 | | loaded) | |
628628 +------------------------+--------------------------------+---------------------------+
629- | *extra_objects * | list of extra files to link | string |
629+ | *extra_objects * | list of extra files to link | list of strings |
630630 | | with (e.g. object files not | |
631631 | | implied by 'sources', static | |
632632 | | library that must be | |
633633 | | explicitly specified, binary | |
634634 | | resource files, etc.) | |
635635 +------------------------+--------------------------------+---------------------------+
636- | *extra_compile_args * | any extra platform- and | string |
636+ | *extra_compile_args * | any extra platform- and | list of strings |
637637 | | compiler-specific information | |
638638 | | to use when compiling the | |
639639 | | source files in 'sources'. For | |
@@ -644,7 +644,7 @@ extension modules.
644644 | | for other platforms it could | |
645645 | | be anything. | |
646646 +------------------------+--------------------------------+---------------------------+
647- | *extra_link_args * | any extra platform- and | string |
647+ | *extra_link_args * | any extra platform- and | list of strings |
648648 | | compiler-specific information | |
649649 | | to use when linking object | |
650650 | | files together to create the | |
@@ -653,15 +653,15 @@ extension modules.
653653 | | Similar interpretation as for | |
654654 | | 'extra_compile_args'. | |
655655 +------------------------+--------------------------------+---------------------------+
656- | *export_symbols * | list of symbols to be exported | string |
656+ | *export_symbols * | list of symbols to be exported | list of strings |
657657 | | from a shared extension. Not | |
658658 | | used on all platforms, and not | |
659659 | | generally necessary for Python | |
660660 | | extensions, which typically | |
661661 | | export exactly one symbol: | |
662662 | | ``init `` + extension_name. | |
663663 +------------------------+--------------------------------+---------------------------+
664- | *depends * | list of files that the | string |
664+ | *depends * | list of files that the | list of strings |
665665 | | extension depends on | |
666666 +------------------------+--------------------------------+---------------------------+
667667 | *language * | extension language (i.e. | string |
@@ -670,5 +670,8 @@ extension modules.
670670 | | from the source extensions if | |
671671 | | not provided. | |
672672 +------------------------+--------------------------------+---------------------------+
673-
674- .. [# ] For values documented as lists, the given type is the type of each element.
673+ | *optional * | specifies that a build failure | boolean |
674+ | | in the extension should not | |
675+ | | abort the build process, but | |
676+ | | simply skip the extension. | |
677+ +------------------------+--------------------------------+---------------------------+
0 commit comments