diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-10-22 12:12:04 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-10-22 12:12:04 -0400 |
commit | a9d3576584cd9a91734dae6473ab6c3253f09f64 (patch) | |
tree | d09b4fb2bdc27f12875fe966d13e553688ab6d69 | |
parent | 13c55c0cee1351c88551bf081ae56ed3e60b4493 (diff) | |
download | python-setuptools-git-a9d3576584cd9a91734dae6473ab6c3253f09f64.tar.gz |
Suppress the now invalid pbr version.
-rw-r--r-- | setuptools/package_index.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py index c9254289..1300b406 100644 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -283,6 +283,12 @@ class PackageIndex(Environment): self.to_scan = [] self.opener = urllib.request.urlopen + def add(self, dist): + # ignore invalid pbr version + if dist.version == '0.5.2.5.g5b3e942': + return + return super().add(dist) + # FIXME: 'PackageIndex.process_url' is too complex (14) def process_url(self, url, retrieve=False): # noqa: C901 """Evaluate a URL as a possible download, and maybe retrieve it""" |