name is the module name string for the
name may include dots
to indicate that the extension module resides within a package.
sources is the list of source files that
distutils must compile and link in order to
build the extension. Each item of
is a string giving a source file’s path relative to
the distribution root directory, complete with file extension
kwds lets you
pass other, optional arguments to
covered later in this section.
also supports other file extensions besides
indicating other languages you may use to code Python extensions. On
platforms having a C++ compiler, file extension
indicates C++ source files. Other file extensions that may
be supported, depending on the platform and on add-ons to the
distutils that are still in experimental stages at
the time of this writing, include
.i for SWIG, and
.pyx for Pyrex files. See Chapter 24 for information about using different
languages to extend Python.
In some cases, your extension needs no further information besides
implicitly perform all that is necessary to make the Python headers
directory and the Python library available for your
extension’s compilation and linking, and also
provide whatever compiler or linker flags or options are needed to
build extensions on a given platform.
When it takes additional information ...