Cythonize fix for multiple files.
authorRobert Bradshaw <robertwb@math.washington.edu>
Tue, 23 Nov 2010 01:56:17 +0000 (17:56 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Tue, 23 Nov 2010 01:56:17 +0000 (17:56 -0800)
Cython/Build/Dependencies.py

index d74908f0a835480dec2f5c14c6e2cc8ccf1256f8..8a0f50d857c3ee6ab27d45ac04204b4147219d25 100644 (file)
@@ -411,10 +411,15 @@ def create_extension_list(patterns, ctx=None, aliases=None):
             raise TypeError(pattern)
         for file in glob(filepattern):
             pkg = deps.package(file)
-            if name == '*':
-                name = deps.fully_qualifeid_name(file)
-            if name not in seen:
-                module_list.append(exn_type(name=name, sources=[file], **deps.distutils_info(file, aliases, base).values))
+            if '*' in name:
+                module_name = deps.fully_qualifeid_name(file)
+            else:
+                module_name = name
+            if module_name not in seen:
+                module_list.append(exn_type(
+                        name=module_name,
+                        sources=[file],
+                        **deps.distutils_info(file, aliases, base).values))
                 seen.add(name)
     return module_list