Ignore non-cython modules in module list creation.
authorRobert Bradshaw <robertwb@math.washington.edu>
Tue, 14 Sep 2010 05:15:14 +0000 (22:15 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Tue, 14 Sep 2010 05:15:14 +0000 (22:15 -0700)
Cython/Compiler/Dependencies.py

index 1832ceafb68c8d008459077bc8ad4d084236cacc..8b6a55f54e5863994d90ad27bc4176004f8e8b28 100644 (file)
@@ -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)