From d3782636f9a68beba1dbefe96421d65af215e48a Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Sat, 9 Jul 2005 04:26:21 +0000 Subject: 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 --- setuptools/command/upload.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setuptools/command') 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: -- cgit v1.2.3