src.compiler_handler module¶
CompilerHandler implementation
- class src.compiler_handler.CompilerHandler(files: dict[str, list[Path]], compiler: CompilerWrapper, clean_source: bool = False, keep_builds: bool = True)¶
Bases:
object
CompilerHandler is responsible for compiling all the
.py
files usingCython
orNuitka
example usage:compiler_handler = CompilerHandler(files=dir_files,compiler=compiler, clean_source=True,keep_builds=True) compiler_handler.start()
- clean_executables() None ¶
Cleans all the .so files.
- start() None ¶
For each
.py
file runs the compiler command to build the final executable.so