summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-03-20 13:30:51 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-03-20 13:30:51 -0400
commita46eb59365b606838a2c83b1dd7c5374923ed951 (patch)
treedd355b24bdffa154628e3c3dcb614f30a475b0ed
parentdf57cb23bfaafde69319911e59537250e78f6b55 (diff)
downloadpython-setuptools-bitbucket-a46eb59365b606838a2c83b1dd7c5374923ed951.tar.gz
Match Python 3 for bdist_dumb.
-rwxr-xr-xsetuptools/package_index.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 5ed19130..963b4b41 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -140,8 +140,9 @@ def interpret_distro_name(
parts = basename.split('-')
if not py_version:
for i,p in enumerate(parts[2:]):
- if len(p)==5 and p.startswith('py2.'):
- return # It's a bdist_dumb, not an sdist -- bail out
+ if p.match('py\d\.\d'):
+ # It's a bdist_dumb, not an sdist -- bail out
+ return
for p in range(1,len(parts)+1):
yield Distribution(