Skip to content

Commit ebf26a6

Browse files
authored
devops: make wheels smaller (use deflate zip compression) (#2662)
1 parent f45782e commit ebf26a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ def _build_wheel(
148148
extractall(zip, f"driver/{wheel_bundle['zip_name']}")
149149
wheel_location = without_platform + wheel_bundle["wheel"]
150150
shutil.copy(base_wheel_location, wheel_location)
151-
with zipfile.ZipFile(wheel_location, "a") as zip:
151+
with zipfile.ZipFile(
152+
wheel_location, mode="a", compression=zipfile.ZIP_DEFLATED
153+
) as zip:
152154
driver_root = os.path.abspath(f"driver/{wheel_bundle['zip_name']}")
153155
for dir_path, _, files in os.walk(driver_root):
154156
for file in files:

0 commit comments

Comments
 (0)