Commit 46eb9e65 authored by PJ Eby's avatar PJ Eby

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
parent 6861a1ff
...@@ -625,7 +625,7 @@ addition, the following methods are provided: ...@@ -625,7 +625,7 @@ addition, the following methods are provided:
``__str__()`` ``__str__()``
The string form of an ``EntryPoint`` is a string that could be passed to The string form of an ``EntryPoint`` is a string that could be passed to
``EntryPoint.parse()`` to yield an equivalent ``EntryPoint``. ``EntryPoint.parse()`` to produce an equivalent ``EntryPoint``.
``Distribution`` Objects ``Distribution`` Objects
......
...@@ -73,12 +73,9 @@ class upload(Command): ...@@ -73,12 +73,9 @@ class upload(Command):
# Fill in the data # Fill in the data
content = open(filename,'rb').read() content = open(filename,'rb').read()
basename = os.path.basename(filename) basename = os.path.basename(filename)
if basename.endswith('.egg'):
basename += '.zip'
comment = '' comment = ''
if command=='bdist_egg': if command=='bdist_egg' and self.distribution.has_ext_modules():
command='sdist' comment = "built on %s" % platform.platform(terse=1)
comment='Binary egg for use with setuptools'
data = { data = {
':action':'file_upload', ':action':'file_upload',
'protcol_version':'1', 'protcol_version':'1',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment