diff options
| author | PJ Eby <distutils-sig@python.org> | 2005-07-18 02:28:14 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2005-07-18 02:28:14 +0000 |
| commit | 89ff5b184629d1bafd55342ad5eeb1dccc4b2956 (patch) | |
| tree | 9230bf6807ca6ea5ebe1917ba1d6378e72986d36 /pkg_resources.py | |
| parent | f7288a7f76db04584c4fbb43d86adfda29285e90 (diff) | |
| download | python-setuptools-git-89ff5b184629d1bafd55342ad5eeb1dccc4b2956.tar.gz | |
Catch a few missed terminology changes.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041137
Diffstat (limited to 'pkg_resources.py')
| -rw-r--r-- | pkg_resources.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index 3151b063..6c5f5ef1 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -362,7 +362,7 @@ class WorkingSet(object): # Oops, the "best" so far conflicts with a dependency raise VersionConflict(dist,req) # XXX put more info here - requirements.extend(dist.depends(req.extras)[::-1]) + requirements.extend(dist.requires(req.extras)[::-1]) processed[req] = True return to_activate # return list of distros to activate @@ -1569,8 +1569,8 @@ class Distribution(object): _dep_map = property(_dep_map) - def depends(self,extras=()): - """List of Requirements needed for this distro if `options` are used""" + def requires(self,extras=()): + """List of Requirements needed for this distro if `extras` are used""" dm = self._dep_map deps = [] deps.extend(dm.get(None,())) @@ -1686,16 +1686,18 @@ def parse_requirements(strs): raise ValueError("Missing distribution spec", line) project_name = match.group(1) p = match.end() - options = [] + extras = [] match = OBRACKET(line,p) if match: p = match.end() - line, p, options = scan_list(DISTRO,CBRACKET,line,p,(1,),"option") + line, p, extras = scan_list( + DISTRO, CBRACKET, line, p, (1,), "'extra' name" + ) line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec") specs = [(op,val.replace('_','-')) for op,val in specs] - yield Requirement(project_name.replace('_','-'), specs, options) + yield Requirement(project_name.replace('_','-'), specs, extras) def _sort_dists(dists): @@ -1718,8 +1720,6 @@ def _sort_dists(dists): - - class Requirement: def __init__(self, project_name, specs=(), extras=()): self.project_name = project_name |
