Skip to content

Commit 6431406

Browse files
authored
Merge pull request #937 from rodcloutier/Fix_tcl_install_failing_on_windows
Only copy tcltk related files if exists and not present.
2 parents 4b707b8 + ff95518 commit 6431406

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

virtualenv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,8 @@ def copy_tcltk(src, dest, symlink):
10741074
for name in ['tcl', 'tk']:
10751075
srcdir = src + '/tcl/' + name + libver
10761076
dstdir = dest + '/tcl/' + name + libver
1077-
copyfileordir(srcdir, dstdir, symlink)
1077+
if os.path.exists(srcdir) and not os.path.exists(dstdir):
1078+
copyfileordir(srcdir, dstdir, symlink)
10781079

10791080
def subst_path(prefix_path, prefix, home_dir):
10801081
prefix_path = os.path.normpath(prefix_path)

0 commit comments

Comments
 (0)