Message247179
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() |
|
Date |
User |
Action |
Args |
2015-07-23 09:44:13 | Jan.Stürtz | set | recipients:
+ Jan.Stürtz, eric.araujo, dstufft |
2015-07-23 09:44:12 | Jan.Stürtz | set | messageid: <1437644652.98.0.268496303546.issue24691@psf.upfronthosting.co.za> |
2015-07-23 09:44:12 | Jan.Stürtz | link | issue24691 messages |
2015-07-23 09:44:12 | Jan.Stürtz | create | |
|