diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-17 18:58:29 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-17 18:58:29 -0400 |
| commit | 60beb22b4ca7e7d4f549c7137c7a20a633d72916 (patch) | |
| tree | 98f481040419fbfbbfcbf304b90289b85c153932 /setuptools/command | |
| parent | f84506654ff8199b07bb4eab8b210de25eb546f2 (diff) | |
| download | python-setuptools-git-60beb22b4ca7e7d4f549c7137c7a20a633d72916.tar.gz | |
Extract variable
Diffstat (limited to 'setuptools/command')
| -rwxr-xr-x | setuptools/command/egg_info.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 646f9460..169fcd3e 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -358,7 +358,8 @@ def warn_depends_obsolete(cmd, basename, filename): def write_requirements(cmd, basename, filename): dist = cmd.distribution data = ['\n'.join(yield_lines(dist.install_requires or ()))] - for extra,reqs in (dist.extras_require or {}).items(): + extras_require = dist.extras_require or {} + for extra,reqs in extras_require.items(): data.append('\n\n[%s]\n%s' % (extra, '\n'.join(yield_lines(reqs)))) cmd.write_or_delete_file("requirements", filename, ''.join(data)) |
