From: Mark Florisson Date: Sat, 8 Jan 2011 15:20:01 +0000 (+0100) Subject: Merge https://github.com/cython/cython X-Git-Tag: 0.14.1rc0~12^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8193f74a4bd29acbc411672f11d59bb7c1607825;p=cython.git Merge https://github.com/cython/cython --- 8193f74a4bd29acbc411672f11d59bb7c1607825 diff --cc Cython/Compiler/Main.py index 1f1939ce,f27a81db..9349cf86 --- a/Cython/Compiler/Main.py +++ b/Cython/Compiler/Main.py @@@ -72,9 -68,8 +72,8 @@@ class Context(object) # include_directories [string] # future_directives [object] # language_level int currently 2 or 3 for Python 2/3 - + def __init__(self, include_directories, compiler_directives, cpp=False, language_level=2): - #self.modules = {"__builtin__" : BuiltinScope()} import Builtin, CythonScope self.modules = {"__builtin__" : Builtin.builtin_scope} self.modules["cython"] = CythonScope.create_cython_scope(self) @@@ -595,9 -601,9 +606,9 @@@ def run_pipeline(source, options, full_ # Set up result object result = create_default_resultobj(source, options) - + # Get pipeline - if source_desc.filename.endswith(".py"): + if source_ext.lower() == '.py': pipeline = context.create_py_pipeline(options, result) else: pipeline = context.create_pyx_pipeline(options, result)