Author Jan.Stürtz
Recipients Jan.Stürtz, dstufft, eric.araujo
Date 2015-07-23.09:44:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
We tried to upload a very large (350MB) bdist egg via distutils to our internal package server. 
And received following crash.

Traceback (most recent call last):
  File "", line 1, in <module>
    import os
  File "C:\devel\cdb\10.1.tag\cdb\python\cdb\comparch\", line 120, in setup
    def setup(**kwargs):
  File "C:\devel\cdb\10.1.tag\win32\debug\img\lib\distutils\", line 60, in setup
    def setup(**attrs):
  File "C:\devel\cdb\10.1.tag\win32\debug\img\lib\distutils\", line 947, in run_commands
    def run_commands(self):
  File "C:\devel\cdb\10.1.tag\win32\debug\img\lib\distutils\", line 957, in run_command
    def run_command(self, command):
  File "C:\devel\cdb\10.1.tag\win32\debug\img\lib\distutils\command\", line 56, in run
    def run(self):
  File "C:\devel\cdb\10.1.tag\win32\debug\img\lib\distutils\command\", line 154, in upload_file
    body.write('\r\nContent-Disposition: form-data; name="%s"' % key)
MemoryError: out of memory

A patch could be very easy using tempfile.SpooledTemporaryFile()
Date User Action Args
2015-07-23 09:44:13Jan.Stürtzsetrecipients: + Jan.Stürtz, eric.araujo, dstufft
2015-07-23 09:44:12Jan.Stürtzsetmessageid: <>
2015-07-23 09:44:12Jan.Stürtzlinkissue24691 messages
2015-07-23 09:44:12Jan.Stürtzcreate