Skip to content

Commit 9dd01ad

Browse files
committed
Use static libdeflate on Windows to avoid DLL dependency
1 parent eddf76a commit 9dd01ad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
extra_link_args.extend(deflate_libs)
5050
except (subprocess.CalledProcessError, FileNotFoundError):
5151
if sys.platform == "win32":
52-
extra_link_args.append("deflate.lib")
52+
# Use static lib on Windows to avoid DLL shipping
53+
extra_link_args.append("deflatestatic.lib")
5354
else:
5455
extra_link_args.append("-ldeflate")
5556

0 commit comments

Comments
 (0)