From 0fefeb25858ac943a39c4f9ca7e0a493052517a1 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 9 Mar 2011 10:41:27 -0800 Subject: [PATCH] Fix source list trimming in cythonize(...) --- Cython/Build/Dependencies.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py index 73b03342..5ffa2c90 100644 --- a/Cython/Build/Dependencies.py +++ b/Cython/Build/Dependencies.py @@ -434,9 +434,12 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None): for key, value in base.values.items(): if key not in kwds: kwds[key] = value + sources = [file] + if template is not None: + sources += template.sources[1:] module_list.append(exn_type( name=module_name, - sources=[file], + sources=sources, **kwds)) m = module_list[-1] seen.add(name) -- 2.26.2