diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-03-16 06:23:24 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-03-16 06:23:24 -0400 |
| commit | 97724357315e4ec8068cc2c80a450cd19766f875 (patch) | |
| tree | 520f6079056acd05b3646863cf443b14726cc7a5 /setuptools/command/egg_info.py | |
| parent | 6ef85d9d2d900707b3dcbfe56f4d671add72e91d (diff) | |
| download | python-setuptools-git-97724357315e4ec8068cc2c80a450cd19766f875.tar.gz | |
Sort entry points when writing so they render consistently
Diffstat (limited to 'setuptools/command/egg_info.py')
| -rwxr-xr-x | setuptools/command/egg_info.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 5953aad4..4f5c9694 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -369,10 +369,10 @@ def write_entries(cmd, basename, filename): data = ep elif ep is not None: data = [] - for section, contents in ep.items(): + for section, contents in sorted(ep.items()): if not isinstance(contents,basestring): contents = EntryPoint.parse_group(section, contents) - contents = '\n'.join(map(str,contents.values())) + contents = '\n'.join(sorted(map(str,contents.values()))) data.append('[%s]\n%s\n\n' % (section,contents)) data = ''.join(data) |
