diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-20 13:30:51 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-20 13:30:51 -0400 |
commit | a631a0700d2ebcc9ee98c91d474f351974cc0b92 (patch) | |
tree | ec0f03646a29a59e1d893a11a6c3b31257ee1fb0 /setuptools/package_index.py | |
parent | e1c326e105c1bbd3585e5867973b8d54dc9d4929 (diff) | |
download | external_python_setuptools-a631a0700d2ebcc9ee98c91d474f351974cc0b92.tar.gz external_python_setuptools-a631a0700d2ebcc9ee98c91d474f351974cc0b92.tar.bz2 external_python_setuptools-a631a0700d2ebcc9ee98c91d474f351974cc0b92.zip |
Match Python 3 for bdist_dumb.
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-x | setuptools/package_index.py | 5 |
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( |