From: Robert Bradshaw Date: Wed, 9 Mar 2011 18:41:27 +0000 (-0800) Subject: Fix source list trimming in cythonize(...) X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=0fefeb25858ac943a39c4f9ca7e0a493052517a1;p=cython.git Fix source list trimming in cythonize(...) --- 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)