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 tarek
Recipients illume, tarek
Date 2009-12-18.19:38:16
SpamBayes Score 3.5681e-07
Marked as misclassified No
Message-id <>
As you said, this race condition can happen even if you copy the file in
some temp dir, then move them to python. That would reduce the window,
but not remove it.

The best way to avoid it is to stop any running Python process when 
updates occurs I guess, or work on some kind of protected import statement. 

Now I am not sure about potential breakages during installation at
Distutils' level since it just copies files to site-packages only once
everything is built. The only breakage I have in mind is when there's
some kind of I/O error when copying files on the disk.

So I agree that it would be better to save any file that is about to be
overriden when the install command starts to copy files, so it can
rollback if a problem occurs.
Date User Action Args
2009-12-18 19:38:19tareksetrecipients: + tarek, illume
2009-12-18 19:38:19tareksetmessageid: <>
2009-12-18 19:38:17tareklinkissue7412 messages
2009-12-18 19:38:17tarekcreate