◆ build_extension()
def build_extension |
( |
|
self, |
|
|
|
ext |
|
) |
| |
◆ build_extensions()
def build_extensions |
( |
|
self | ) |
|
◆ check_extensions_list()
def check_extensions_list |
( |
|
self, |
|
|
|
extensions |
|
) |
| |
Ensure that the list of extensions (presumably provided as a
command option 'extensions') is valid, i.e. it is a list of
Extension objects. We also support the old-style list of 2-tuples,
where the tuples are (ext_name, build_info), which are converted to
Extension instances here.
Raise DistutilsSetupError if the structure is invalid anywhere;
just returns otherwise.
◆ finalize_options()
def finalize_options |
( |
|
self | ) |
|
◆ find_swig()
Return the name of the SWIG executable. On Unix, this is
just "swig" -- it should be in the PATH. Tries a bit harder on
Windows.
◆ get_export_symbols()
def get_export_symbols |
( |
|
self, |
|
|
|
ext |
|
) |
| |
Return the list of symbols that a shared extension has to
export. This either uses 'ext.export_symbols' or, if it's not
provided, "PyInit_" + module_name. Only relevant on Windows, where
the .pyd file (DLL) must export the module "PyInit_" function.
◆ get_ext_filename()
def get_ext_filename |
( |
|
self, |
|
|
|
ext_name |
|
) |
| |
Convert the name of an extension (eg. "foo.bar") into the name
of the file from which it will be loaded (eg. "foo/bar.so", or
"foo\bar.pyd").
◆ get_ext_fullname()
def get_ext_fullname |
( |
|
self, |
|
|
|
ext_name |
|
) |
| |
Returns the fullname of a given extension name.
Adds the `package.` prefix
◆ get_ext_fullpath()
def get_ext_fullpath |
( |
|
self, |
|
|
|
ext_name |
|
) |
| |
Returns the path of the filename for a given extension.
The file is located in `build_lib` or directly in the package
(inplace option).
◆ get_libraries()
def get_libraries |
( |
|
self, |
|
|
|
ext |
|
) |
| |
Return the list of libraries to link against when building a
shared extension. On most platforms, this is just 'ext.libraries';
on Windows, we add the Python library (eg. python20.dll).
◆ get_outputs()
◆ get_source_files()
def get_source_files |
( |
|
self | ) |
|
◆ initialize_options()
def initialize_options |
( |
|
self | ) |
|
◆ run()
◆ swig_sources()
def swig_sources |
( |
|
self, |
|
|
|
sources, |
|
|
|
extension |
|
) |
| |
Walk the list of source files in 'sources', looking for SWIG
interface (.i) files. Run SWIG on all that are found, and
return a modified 'sources' list with SWIG source files replaced
by the generated C (or C++) files.
◆ boolean_options
◆ build_lib
◆ build_temp
◆ compiler
◆ debug
◆ define
◆ description
◆ extensions
◆ force
◆ help_options
◆ include_dirs
◆ inplace
◆ libraries
◆ library_dirs
◆ link_objects
◆ package
◆ parallel
◆ plat_name
◆ rpath
◆ sep_by
◆ swig
◆ swig_cpp
◆ swig_opts
◆ undef
◆ user
◆ user_options
The documentation for this class was generated from the following file:
- /home/passerat/Stage/flaskProject/venv/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py