From: Robert Bradshaw Date: Tue, 23 Nov 2010 01:56:17 +0000 (-0800) Subject: Cythonize fix for multiple files. X-Git-Tag: 0.14.alpha0~100 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d0697c2f238973ccf297d7698e97ae12b708e65e;p=cython.git Cythonize fix for multiple files. --- diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py index d74908f0..8a0f50d8 100644 --- a/Cython/Build/Dependencies.py +++ b/Cython/Build/Dependencies.py @@ -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