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, plugin_manager, **kwargs)[source]View on GitHub#

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 or None) – Path to the working directory.

  • plugin_manager (pluggy.PluginManager) – The plugin manager used to connect activated plugins.

  • **kwargs (dict) – See execute_pyccel.

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

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.