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 | a46eb59365b606838a2c83b1dd7c5374923ed951 (patch) | |
| tree | dd355b24bdffa154628e3c3dcb614f30a475b0ed | |
| parent | df57cb23bfaafde69319911e59537250e78f6b55 (diff) | |
| download | python-setuptools-bitbucket-a46eb59365b606838a2c83b1dd7c5374923ed951.tar.gz | |
Match Python 3 for bdist_dumb.
| -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( |
