aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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(