Author mgorny
Recipients eric.araujo, mgorny, tarek
Date 2013-01-06.12:44:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357476277.46.0.0647034504115.issue16879@psf.upfronthosting.co.za>
In-reply-to
Content
The distutils.command.config module reads:

    def _gen_temp_sourcefile(self, body, headers, lang):
        filename = "_configtest" + LANG_EXT[lang]

which means that every time one of the functions is used, a temporary file with the same name will be created. This is really fragile and fails terribly whenever more than one process tries to use the relevant functions in the same working directory.

I believe this code should use the tempfile module to generate unique temporary files names instead.
History
Date User Action Args
2013-01-06 12:44:37mgornysetrecipients: + mgorny, tarek, eric.araujo
2013-01-06 12:44:37mgornysetmessageid: <1357476277.46.0.0647034504115.issue16879@psf.upfronthosting.co.za>
2013-01-06 12:44:37mgornylinkissue16879 messages
2013-01-06 12:44:36mgornycreate