Skip to content

Commit ebf26a6

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy