From b6dbdc5d40c3745a06db674e5171c2f31e311a51 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Mon, 13 Sep 2010 22:15:14 -0700 Subject: [PATCH] Ignore non-cython modules in module list creation. --- Cython/Compiler/Dependencies.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.26.2