aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/upload.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-07-09 04:26:21 +0000
committerPJ Eby <distutils-sig@python.org>2005-07-09 04:26:21 +0000
commitd3782636f9a68beba1dbefe96421d65af215e48a (patch)
tree221172e16b47bb2ee2273eaf51a6205b43af018f /setuptools/command/upload.py
parentdb0f52341dfc8237e655037e5ba632029da44887 (diff)
downloadexternal_python_setuptools-d3782636f9a68beba1dbefe96421d65af215e48a.tar.gz
external_python_setuptools-d3782636f9a68beba1dbefe96421d65af215e48a.tar.bz2
external_python_setuptools-d3782636f9a68beba1dbefe96421d65af215e48a.zip
Add informative comment when uploading eggs, to help distinguish them from
source archives. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041104
Diffstat (limited to 'setuptools/command/upload.py')
-rwxr-xr-xsetuptools/command/upload.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/command/upload.py b/setuptools/command/upload.py
index bad01577..4aa73cd1 100755
--- a/setuptools/command/upload.py
+++ b/setuptools/command/upload.py
@@ -75,8 +75,10 @@ class upload(Command):
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'
data = {
':action':'file_upload',
'protcol_version':'1',
@@ -87,7 +89,6 @@ class upload(Command):
'pyversion':pyversion,
'md5_digest':md5(content).hexdigest(),
}
- comment = ''
if command == 'bdist_rpm':
dist, version, id = platform.dist()
if dist: