From: Robert Bradshaw Date: Tue, 14 Sep 2010 05:15:14 +0000 (-0700) Subject: Ignore non-cython modules in module list creation. X-Git-Tag: 0.14.alpha0~311 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b6dbdc5d40c3745a06db674e5171c2f31e311a51;p=cython.git Ignore non-cython modules in module list creation. --- diff --git a/Cython/Compiler/Dependencies.py b/Cython/Compiler/Dependencies.py index 1832ceaf..8b6a55f5 100644 --- a/Cython/Compiler/Dependencies.py +++ b/Cython/Compiler/Dependencies.py @@ -383,6 +383,10 @@ def create_extension_list(patterns, ctx=None, aliases=None): exn_type = Extension elif isinstance(pattern, Extension): filepattern = pattern.sources[0] + if os.path.splitext(filepattern)[1] not in ('.py', '.pyx'): + # ignore non-cython modules + module_list.append(pattern) + continue template = pattern name = template.name base = DistutilsInfo(template)