Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ebf26a6

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

File tree

1 file changed

+3
-1
lines changed
Filter options

1 file changed

+3
-1
lines changed

‎setup.py

Copy file name to clipboardExpand all lines: setup.py
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.