[issue35699] distutils cannot find Build Tools 2017 since 3.7.2

Tzu-ping Chung report at bugs.python.org
Mon Jan 21 13:50:45 EST 2019


Tzu-ping Chung <uranusjr at gmail.com> added the comment:

I read a few of the logs, and all errors roots in the same place, when the test case tries to remove the tempdir during teardown/cleanup. The Windows (and other platforms not supporting directory fds) implementation of rmtree can have race conditions if files are added while the directory being walked, causing the error.

I don’t know the case of CPython, but Pipenv has a similar problem when running concurrent tests with subprocesses. We never solved it (but simply wrap the rmtree call inside a try block and look away).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35699>
_______________________________________


More information about the Python-bugs-list mailing list