Skip to content

Commit 0f0a4f0

Browse files
committed
Merge pull request #2749 from dstufft/move-not-rename
Use shutil.move instead of os.rename
2 parents ada5a6d + 31ab024 commit 0f0a4f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pip/wheel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ def _build_one(self, req, output_dir):
641641
try:
642642
wheel_name = os.listdir(tempd)[0]
643643
wheel_path = os.path.join(output_dir, wheel_name)
644-
os.rename(os.path.join(tempd, wheel_name), wheel_path)
644+
shutil.move(os.path.join(tempd, wheel_name), wheel_path)
645645
logger.info('Stored in directory: %s', output_dir)
646646
return wheel_path
647647
except:

0 commit comments

Comments
 (0)