Commit 1d20da60 authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #407 from jdemeyer/sort_depends

Sort dependencies in metadata
parents 74435af4 cb99c019
...@@ -687,7 +687,9 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=Fa ...@@ -687,7 +687,9 @@ def create_extension_list(patterns, exclude=[], ctx=None, aliases=None, quiet=Fa
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 = list(set(template.depends).union(set(depends)))
kwds['depends'] = depends # Sort depends to make the metadata dump in the
# Cython-generated C code predictable.
kwds['depends'] = sorted(depends)
if ext_language and 'language' not in kwds: if ext_language and 'language' not in kwds:
kwds['language'] = ext_language kwds['language'] = ext_language
......
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