Commit 647153e6 authored by PJ Eby's avatar PJ Eby

Fix a bug introduced by making split_sections() not lowercase section

headings.

--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041188
parent 9902ae7b
......@@ -1597,8 +1597,6 @@ def parse_version(s):
class EntryPoint(object):
"""Object representing an importable location"""
......@@ -1812,9 +1810,9 @@ class Distribution(object):
dm = self.__dep_map = {None: []}
for name in 'requires.txt', 'depends.txt':
for extra,reqs in split_sections(self._get_metadata(name)):
dm.setdefault(extra.lower(),[]).extend(parse_requirements(reqs))
if extra: extra = extra.lower()
dm.setdefault(extra,[]).extend(parse_requirements(reqs))
return dm
_dep_map = property(_dep_map)
def requires(self,extras=()):
......
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