Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4865259 commit e773f93Copy full SHA for e773f93
setupext.py
@@ -709,10 +709,10 @@ def do_custom_build(self, env):
709
# Be robust against change of FreeType version.
710
lib_paths = Path(src_path / "objs").rglob('freetype*.lib')
711
# Select FreeType library for required platform
712
- lib_path = next(
+ lib_path, = [
713
p for p in lib_paths
714
if msbuild_platform in p.resolve().as_uri()
715
- )
+ ]
716
print(f"Copying {lib_path} to {src_path}/objs/.libs/libfreetype.lib")
717
shutil.copy2(lib_path, src_path / "objs/.libs/libfreetype.lib")
718
0 commit comments