pyccel.commands.pyccel_compile module#
Module containing scripts to handle the pyccel compile sub-command.
- pyccel.commands.pyccel_compile.pyccel_compile(*, filename, language, output, **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) – Path to the working directory.
**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.