diff options
author | PJ Eby <distutils-sig@python.org> | 2005-08-21 22:12:12 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2005-08-21 22:12:12 +0000 |
commit | 46eb9e6507ed12b79ec70b55ac2ffb74543bccd1 (patch) | |
tree | c1e4df927edad80822f7811ee548046fcb3061b2 /setuptools/command/upload.py | |
parent | 6861a1ffbb22a507dd28571f7d3e48d9f0d089de (diff) | |
download | python-setuptools-git-46eb9e6507ed12b79ec70b55ac2ffb74543bccd1.tar.gz |
Thanks to Richard Jones, we no longer need to fake out PyPI with a '.zip'
extension for eggs.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041213
Diffstat (limited to 'setuptools/command/upload.py')
-rwxr-xr-x | setuptools/command/upload.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/setuptools/command/upload.py b/setuptools/command/upload.py index 4aa73cd1..94190c2a 100755 --- a/setuptools/command/upload.py +++ b/setuptools/command/upload.py @@ -73,12 +73,9 @@ class upload(Command): # Fill in the data content = open(filename,'rb').read() basename = os.path.basename(filename) - if basename.endswith('.egg'): - basename += '.zip' comment = '' - if command=='bdist_egg': - command='sdist' - comment='Binary egg for use with setuptools' + if command=='bdist_egg' and self.distribution.has_ext_modules(): + comment = "built on %s" % platform.platform(terse=1) data = { ':action':'file_upload', 'protcol_version':'1', |