pyccel.utilities.stage module#
File containing information about which treatment stage Pyccel is executing
- class pyccel.utilities.stage.PyccelStage(self)[source]View on GitHub#
Bases:
objectClass wrapping a string indicating which treatment stage Pyccel is executing.
Class wrapping a string indicating which treatment stage Pyccel is executing. This string is one of:
syntactic
semantic
codegen
cwrapper
compilation
buildgen
When Pyccel is not executing the stage is None.
- property current_stageView on GitHub#
Get the current stage as a string.
Returns one of: - syntactic - semantic - codegen - cwrapper - compilation - buildgen indicating the current stage.
- pyccel_finished()[source]View on GitHub#
Indicate that Pyccel has finished running and reset stage to None
- set_stage(stage)[source]View on GitHub#
Set the current treatment stage.
Set the current treatment stage.
- Parameters:
stage (str) – One of the valid stages.