This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <1437644652.98.0.268496303546.issue24691@psf.upfronthosting.co.za>
In-reply-to
Content
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 "setup.py", line 1, in <module>
    import os
  File "C:\devel\cdb\10.1.tag\cdb\python\cdb\comparch\pkgtools.py", line 120, in setup
    def setup(**kwargs):
  File "C:\devel\cdb\10.1.tag\win32\debug\img\lib\distutils\core.py", line 60, in setup
    def setup(**attrs):
  File "C:\devel\cdb\10.1.tag\win32\debug\img\lib\distutils\dist.py", line 947, in run_commands
    def run_commands(self):
  File "C:\devel\cdb\10.1.tag\win32\debug\img\lib\distutils\dist.py", line 957, in run_command
    def run_command(self, command):
  File "C:\devel\cdb\10.1.tag\win32\debug\img\lib\distutils\command\upload.py", line 56, in run
    def run(self):
  File "C:\devel\cdb\10.1.tag\win32\debug\img\lib\distutils\command\upload.py", 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()
History
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: <1437644652.98.0.268496303546.issue24691@psf.upfronthosting.co.za>
2015-07-23 09:44:12Jan.Stürtzlinkissue24691 messages
2015-07-23 09:44:12Jan.Stürtzcreate