Skip to content

Commit a155f0d

Browse files
authored
Merge pull request #28 from pywin32/xoviat-patch-1
Don't copy file if it already exists.
2 parents 6cb8531 + f99f7f1 commit a155f0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ def build_extensions(self):
564564
if name1 is not None:
565565
src = os.path.join(self.build_temp, os.path.dirname(ext.sources[0]), name1)
566566
dst = os.path.join(self.build_temp, name2)
567-
if os.path.abspath(src) != os.path.abspath(dst) and os.path.isfile(src):
567+
if os.path.abspath(src) != os.path.abspath(dst) and os.path.isfile(src) and not os.path.isfile(dst):
568568
print('Copying file from: ', src)
569569
print('Copying file to: ', dst)
570570
self.copy_file(src, dst)
@@ -1861,4 +1861,4 @@ def convert_optional_data_files(files):
18611861
('', ('com/pythoncom.py',)),
18621862
('', ('pywin32.pth',)),
18631863
],
1864-
)
1864+
)

0 commit comments

Comments
 (0)