pyccel.codegen.build_generation.build_gen module#
Module describing things that are in common between different build system handlers.
- class pyccel.codegen.build_generation.build_gen.BuildSystemHandler(pyccel_dir, root_dir, output_dir, *, verbose, debug_mode, compiler, accelerators)[source]#
Bases:
objectThe superclass from which build system handlers should inherit.
The superclass from which build system handlers should inherit. This class exists to ensure that all build system handlers have the same constructor.
- Parameters:
pyccel_dir (Path) – The directory where generated files should be outputted.
root_dir (Path) – The directory from which the pyccel make command was called.
output_dir (Path) – The directory where the final files should be outputted.
verbose (int) – The level of verbosity.
debug_mode (bool) – Indicates if we should compile in debug mode.
compiler (pyccel.codegen.compilers.compiling.Compiler) – The compiler that should be used to compile the code.
accelerators (iterable[str]) – Tool used to accelerate the code (e.g., OpenMP, OpenACC).