diff options
| author | Alexis Metaireau <ametaireau@gmail.com> | 2010-08-06 16:43:26 +0200 |
|---|---|---|
| committer | Alexis Metaireau <ametaireau@gmail.com> | 2010-08-06 16:43:26 +0200 |
| commit | 01b11c8d0e122bb1bcb29b01124fd0c311295cab (patch) | |
| tree | adf0cb17ffe6327728a2b4b61af2419f56b5f475 /src | |
| parent | e59f853692bbcf0162be760189355ed056da15d6 (diff) | |
| download | disutils2-01b11c8d0e122bb1bcb29b01124fd0c311295cab.tar.gz | |
Use VersionPredicate to get the name in depgraph instead of parsing it twice.
Diffstat (limited to 'src')
| -rw-r--r-- | src/distutils2/depgraph.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/distutils2/depgraph.py b/src/distutils2/depgraph.py index 75bc4d3..24d7f80 100644 --- a/src/distutils2/depgraph.py +++ b/src/distutils2/depgraph.py @@ -135,8 +135,7 @@ def generate_graph(dists): requires = dist.metadata['Requires-Dist'] + dist.metadata['Requires'] for req in requires: predicate = VersionPredicate(req) - comps = req.strip().rsplit(" ", 1) - name = comps[0] + name = predicate.name if not name in provided: graph.add_missing(dist, req) |
