Skip to content

Commit 1c5b825

Browse files
committed
build-all-win - fix missing compression for Python zip archives
Same as 5ebd425, should resolve #7404
1 parent 58c69f9 commit 1c5b825

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

win/build-all-win.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def archive_python_package(python_version: str, python_path: Path) -> None:
9393
file.unlink()
9494

9595
zip_name = ZIP_TEMPLATE.format(package_name=f"ifcopenshell-python-{python_version_major_minor}")
96-
with ZipFile(OUTPUT_DIR / zip_name, "w") as zipf:
96+
with ZipFile(OUTPUT_DIR / zip_name, "w", compression=zipfile.ZIP_DEFLATED) as zipf:
9797
for file in package_path.rglob("*"):
9898
arcname = file.relative_to(site_packages)
9999
zipf.write(file, arcname=arcname)

0 commit comments

Comments
 (0)