# include_directories [string]
# future_directives [object]
- def __init__(self, include_directories, pragma_overrides):
+ def __init__(self, include_directories, compiler_directives):
#self.modules = {"__builtin__" : BuiltinScope()}
import Builtin, CythonScope
self.modules = {"__builtin__" : Builtin.builtin_scope}
self.modules["cython"] = CythonScope.create_cython_scope(self)
self.include_directories = include_directories
self.future_directives = set()
- self.pragma_overrides = pragma_overrides
+ self.compiler_directives = compiler_directives
self.pxds = {} # full name -> node tree
NormalizeTree(self),
PostParse(self),
_specific_post_parse,
- InterpretCompilerDirectives(self, self.pragma_overrides),
+ InterpretCompilerDirectives(self, self.compiler_directives),
_align_function_definitions,
ConstantFolding(),
FlattenInListTransform(),
def run_pipeline(source, options, full_module_name = None):
# Set up context
- context = Context(options.include_path, options.pragma_overrides)
+ context = Context(options.include_path, options.compiler_directives)
# Set up source object
cwd = os.getcwd()
defaults to true when recursive is true.
verbose boolean Always print source names being compiled
quiet boolean Don't print source names in recursive mode
- pragma_overrides dict Overrides for pragma options (see Options.py)
+ compiler_directives dict Overrides for pragma options (see Options.py)
Following options are experimental and only used on MacOSX:
timestamps = None,
verbose = 0,
quiet = 0,
- pragma_overrides = {},
+ compiler_directives = {},
emit_linenums = False,
)
if sys.platform == "mac":