aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-05-17 19:02:55 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-05-17 19:02:55 -0400
commit380e609d0d788edbdc5808f6d58c6c730a78cb3a (patch)
tree95452a4af1d1264088b79ac2a9bda7a6747f4a4d /setuptools/command/egg_info.py
parent60beb22b4ca7e7d4f549c7137c7a20a633d72916 (diff)
downloadexternal_python_setuptools-380e609d0d788edbdc5808f6d58c6c730a78cb3a.tar.gz
external_python_setuptools-380e609d0d788edbdc5808f6d58c6c730a78cb3a.tar.bz2
external_python_setuptools-380e609d0d788edbdc5808f6d58c6c730a78cb3a.zip
Write requirements in a deterministic order.
Diffstat (limited to 'setuptools/command/egg_info.py')
-rwxr-xr-xsetuptools/command/egg_info.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index 169fcd3e..38a01fbf 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -359,7 +359,8 @@ def write_requirements(cmd, basename, filename):
dist = cmd.distribution
data = ['\n'.join(yield_lines(dist.install_requires or ()))]
extras_require = dist.extras_require or {}
- for extra,reqs in extras_require.items():
+ for extra in sorted(extras_require):
+ reqs = extras_require[extra]
data.append('\n\n[%s]\n%s' % (extra, '\n'.join(yield_lines(reqs))))
cmd.write_or_delete_file("requirements", filename, ''.join(data))