diff -Naur Python-3.8.0-orig/setup.py Python-3.8.0/setup.py
--- Python-3.8.0-orig/setup.py	2019-10-22 10:02:06.503658900 +0300
+++ Python-3.8.0/setup.py	2019-10-22 10:02:13.258470800 +0300
@@ -2434,7 +2434,7 @@
             else:
                 newfilename = filename + minoronly
             log.info('renaming %s to %s', filename, newfilename)
-            os.rename(filename, newfilename)
+            os.replace(filename, newfilename)
             newoutfiles.append(newfilename)
             if filename in updated_files:
                 newupdated_files.append(newfilename)
