Commit 97e1c477 authored by Stefan Behnel's avatar Stefan Behnel

avoid some useless list copying

parent 1d20da60
...@@ -686,7 +686,7 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=Fa ...@@ -686,7 +686,7 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=Fa
depends = resolve_depends(kwds['depends'], (kwds.get('include_dirs') or []) + [find_root_package_dir(file)]) depends = resolve_depends(kwds['depends'], (kwds.get('include_dirs') or []) + [find_root_package_dir(file)])
if template is not None: if template is not None:
# Always include everything from the template. # Always include everything from the template.
depends = list(set(template.depends).union(set(depends))) depends = set(template.depends).union(depends)
# Sort depends to make the metadata dump in the # Sort depends to make the metadata dump in the
# Cython-generated C code predictable. # Cython-generated C code predictable.
kwds['depends'] = sorted(depends) kwds['depends'] = sorted(depends)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment