diff options
| author | Matthew Suozzo <msuozzo@google.com> | 2021-11-28 18:48:10 -0500 |
|---|---|---|
| committer | Matthew Suozzo <msuozzo@google.com> | 2021-11-28 18:48:10 -0500 |
| commit | 62a8d379c274e2e64c7865cada9023d5d83b14c8 (patch) | |
| tree | 90f444cbe5956b6597409ed29837d5a39d323d6f /pkg_resources | |
| parent | d18777775b2fdfab61c9251a1f86b1f75777a444 (diff) | |
| download | python-setuptools-git-62a8d379c274e2e64c7865cada9023d5d83b14c8.tar.gz | |
Remove pkg_resources nondeterminism.
Diffstat (limited to 'pkg_resources')
| -rw-r--r-- | pkg_resources/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index c84f1dd9..f2b7b911 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -3032,12 +3032,12 @@ class DistInfoDistribution(Distribution): if not req.marker or req.marker.evaluate({'extra': extra}): yield req - common = frozenset(reqs_for_extra(None)) + common = dict.fromkeys(reqs_for_extra(None)) dm[None].extend(common) for extra in self._parsed_pkg_info.get_all('Provides-Extra') or []: s_extra = safe_extra(extra.strip()) - dm[s_extra] = list(frozenset(reqs_for_extra(extra)) - common) + dm[s_extra] = [r for r in reqs_for_extra(extra) if r not in common] return dm |
