aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command')
-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',