Skip to content

Commit 587134a

Browse files
committed
Update .appveyor.yml and setup.py
1 parent 8645d67 commit 587134a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ install:
1919
- zstd\zstd.exe -d mingw-w64-x86_64-zstd-1.4.8-2-any.pkg.tar.zst
2020
- dir
2121
- 7z a -tgzip mingw-w64-x86_64-zstd-1.4.8-2-any.pkg.tar.gz mingw-w64-x86_64-zstd-1.4.8-2-any.pkg.tar
22-
- bash -lc "cd /c/projects/python-tksvg; ls -l; pacman --noconfirm -U mingw-w64-x86_64-zstd-1.4.8-2-any.pkg.tar.gz"
22+
- bash -lc "cd /c/projects/extrafont; ls -l; pacman --noconfirm -U mingw-w64-x86_64-zstd-1.4.8-2-any.pkg.tar.gz"
2323
# Download and install pacman for MSYS due to bug in MSYS
2424
- appveyor DownloadFile http://repo.msys2.org/msys/x86_64/pacman-5.2.2-9-x86_64.pkg.tar.zst
2525
- 7z e zstd-v1.4.8-win64.zip -ozstd -y
2626
- zstd\zstd.exe -d pacman-5.2.2-9-x86_64.pkg.tar.zst
2727
- dir
2828
- 7z a -tgzip pacman-5.2.2-9-x86_64.pkg.tar.gz pacman-5.2.2-9-x86_64.pkg.tar
29-
- bash -lc "cd /c/projects/python-tksvg; ls -l; pacman --noconfirm --nodeps --nodeps -U pacman-5.2.2-9-x86_64.pkg.tar.gz"
29+
- bash -lc "cd /c/projects/extrafont; ls -l; pacman --noconfirm --nodeps --nodeps -U pacman-5.2.2-9-x86_64.pkg.tar.gz"
3030
# Cleanup after bug workarounds
3131
- bash -lc "rm -rf zstd"
3232
- bash -lc "rm -rf *.tar *.zst"

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,14 @@ def copy_to_target(self, target: str):
154154
shutil.copyfile(p, t)
155155
else:
156156
printf("Copying {}".format(p))
157-
shutil.copyfile(p, os.path.join(target, os.path.basename(p)))
157+
target_file = os.path.join(target, os.path.basename(p))
158+
try:
159+
shutil.copyfile(p, target_file)
160+
except shutil.SameFileError:
161+
continue
158162

159163
specials = {}
160-
DependencyWalker("libextrafont.dll", specials=specials).copy_to_target("extrafont")
164+
DependencyWalker("tkextrafont/libextrafont.dll", specials=specials).copy_to_target("extrafont")
161165
kwargs = {"package_data": {"extrafont": ["*.dll", "pkgIndex.tcl", "extrafont.tcl"] + ["{}/{}".format(dir.strip("/"), base) for base, dir in specials.items()]}}
162166

163167
else:

0 commit comments

Comments
 (0)