pyccel.commands.pyccel_wrap module#
File containing the pyccel wrap command line interface.
- pyccel.commands.pyccel_wrap.pyccel_wrap(*, filename, language, output, **kwargs) None[source]#
Call the pyccel wrap pipeline.
Import and call the pyccel wrap 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_wrap.
- pyccel.commands.pyccel_wrap.pyccel_wrap_command() None[source]#
Command line wrapper for the deprecated pyccel-wrap command line tool.
Command line wrapper for the deprecated pyccel-wrap command line tool.
- pyccel.commands.pyccel_wrap.setup_pyccel_wrap_parser(parser, add_version=False)[source]#
Add the pyccel wrap arguments to the parser.
Add the pyccel wrap arguments to the parser for command line arguments.
- Parameters:
parser (argparse.ArgumentParser) – The parser to be modified.
add_version (bool, default=False) – Indicates whether a –version flag should be added to the command. This option will be removed in v2.3.