summaryrefslogtreecommitdiff
path: root/setuptools/command/upload.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-08-21 22:12:12 +0000
committerPJ Eby <distutils-sig@python.org>2005-08-21 22:12:12 +0000
commit46eb9e6507ed12b79ec70b55ac2ffb74543bccd1 (patch)
treec1e4df927edad80822f7811ee548046fcb3061b2 /setuptools/command/upload.py
parent6861a1ffbb22a507dd28571f7d3e48d9f0d089de (diff)
downloadpython-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-xsetuptools/command/upload.py7
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',