CLoader

A general loader for C++ extensions to python, based off of the kind of thing that I have had to do multiple times

Properties and Methods

 

__init__(self, lib_name, lib_dir, load_path=None, src_ext='src', description='An extension module', version='1.0.0', include_dirs=None, runtime_dirs=None, linked_libs=None, macros=None, extra_link_args=None, extra_compile_args=None, extra_objects=None, source_files=None, build_script=None, requires_make=False, out_dir=None, cleanup_build=True): 

 

load(self): 

 

find_extension(self): 

Tries to find the extension in the top-level directory

  • :returns: _

    No description…

 

compile_extension(self): 

Compiles and loads a C++ extension

  • :returns: _

    No description…

 

@property
src_dir(self): 

 

@property
lib_lib_dir(self): 

 

get_extension(self): 

Gets the Extension module to be compiled

  • :returns: _

    No description…

 

custom_make(self, make_file, make_dir): 

A way to call a custom make file either for building the helper lib or for building the proper lib

  • make_file: Any

    No description…

  • make_dir: Any

    No description…

  • :returns: _

    No description…

 

make_required_libs(self): 

Makes any libs required by the current one

  • :returns: _

    No description…

 

build_lib(self): 

 

locate_lib(self, root=None): 

Tries to locate the build library file (if it exists)

  • :returns: _

    No description…

 

cleanup(self): 

Examples


Edit Examples or Create New Examples
Edit Template or Create New Template
Edit Docstrings