pyccel.commands.pyccel_compile module

pyccel.commands.pyccel_compile module#

Module containing scripts to handle the pyccel compile sub-command.

pyccel.commands.pyccel_compile.pyccel_compile(*, filename, language, output, export_compiler_config, **kwargs)[source]#

Call the pyccel pipeline.

Handle the deprecated –export-compiler-config command and call the pyccel pipeline.

Parameters:
  • filename (Path) – Name of the Python file to be translated.

  • language (str) – The target language Pyccel is translating to.

  • output (str) – Path to the working directory.

  • export_compiler_config (bool) – Indicates if compiler information should be exported.

  • **kwargs (dict) – See execute_pyccel.

pyccel.commands.pyccel_compile.setup_pyccel_compile_parser(parser)[source]#

Add the pyccel compile arguments to the parser.

Add the pyccel compile arguments to the parser for command line arguments.

Parameters:

parser (argparse.ArgumentParser) – The parser to be modified.