Skip to content

Commit

Permalink
Fix build process to produce a compressed .whl. (#2609)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois authored Dec 2, 2024
1 parent ce30d98 commit b87bf3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-backend/pex_build/setuptools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import os.path
import subprocess
import sys
from zipfile import ZIP_DEFLATED

import pex_build
import setuptools.build_meta
Expand Down Expand Up @@ -76,7 +77,7 @@ def build_wheel(
InstalledFile(path=dst, hash=Hash.create(hasher), size=os.path.getsize(src))
)
Record.write(record_path, installed_files)
with open_zip(wheel_path, "w") as zip_fp:
with open_zip(wheel_path, "w", compression=ZIP_DEFLATED) as zip_fp:

def add_top_level_dir(name):
# type: (str) -> None
Expand Down

0 comments on commit b87bf3c

Please sign in to comment.