From d0697c2f238973ccf297d7698e97ae12b708e65e Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Mon, 22 Nov 2010 17:56:17 -0800 Subject: [PATCH] Cythonize fix for multiple files. --- Cython/Build/Dependencies.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 -- 2.26.2