From 46eb9e6507ed12b79ec70b55ac2ffb74543bccd1 Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Sun, 21 Aug 2005 22:12:12 +0000 Subject: 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 --- setuptools/command/upload.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'setuptools/command/upload.py') 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', -- cgit v1.2.3