Call this function to instantly create an extension module. SWIG is
used to generate code that can be compiled and used as an ordinary Python
module.
Arguments:
-
code:
-
A Python string containing C or C++ function, class,
....
-
module:
-
The name you want for the module (Default is
'instant_swig_module'.). String.
-
swigopts:
-
Options to swig, for instance
-lpointers.i to
include the SWIG pointers.i library. String.
-
init_code:
-
Code that should be executed when the instant extension is
imported. String.
-
system_headers:
-
A list of system header files required by the instant
code.
-
local_headers:
-
A list of local header files required by the instant
code.
-
wrap_headers:
-
A list of local header files that should be wrapped by
SWIG.
-
include_dirs:
-
A list of directories to search for header files.
-
sources:
-
A list of source files to compile and link with the
extension.
-
cppargs:
-
Flags like
-D , -U , etc.
String.
-
lddargs:
-
Flags like
-D , -U , etc.
String.
-
libraries:
-
A list of libraries needed by the instant extension.
-
library_dirs:
-
A list of directories to search for libraries
(
-l ).
-
object_files:
-
If you want to compile the files yourself. NOT YET
SUPPORTED.
-
arrays:
-
A list of the C arrays to be made from NumPy arrays.
-
additional_definitions:
-
A list of additional definitions (typically needed for
inheritance)
-
additional_declarations:
-
A list of additional declarations (typically needed for
inheritance)
-
signature:
-
A signature string to identify the form instead of the
source code.
|