[Python-checkins] python/nondist/sandbox/setuptools/setuptools/command upload.py, 1.1, 1.2

pje@users.sourceforge.net pje at users.sourceforge.net
Sat Jul 9 06:26:24 CEST 2005


Update of /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/command
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv916/setuptools/command

Modified Files:
	upload.py 
Log Message:
Add informative comment when uploading eggs, to help distinguish them from
source archives.


Index: upload.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/command/upload.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- upload.py	7 Jul 2005 16:28:43 -0000	1.1
+++ upload.py	9 Jul 2005 04:26:21 -0000	1.2
@@ -75,8 +75,10 @@
         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 @@
             'pyversion':pyversion,
             'md5_digest':md5(content).hexdigest(),
             }
-        comment = ''
         if command == 'bdist_rpm':
             dist, version, id = platform.dist()
             if dist:



More information about the Python-checkins mailing list