New submission from Michał Górny:
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.
----------
assignee: eric.araujo
components: Distutils
messages: 179179
nosy: eric.araujo, mgorny, tarek
priority: normal
severity: normal
status: open
title: distutils.command.config uses fragile constant temporary file name
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16879>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com