mirror of
https://github.com/openai/codex.git
synced 2026-10-20 00:18:49 +00:00
Use gzip compression level 6 for Codex package archives (#45039)
GitOrigin-RevId: ffd0d1cedb56a10dd9e2e0410c60deafc4202f37
This commit is contained in:
@@ -59,7 +59,8 @@ def archive_format_for_path(path: Path) -> str:
|
||||
|
||||
|
||||
def write_tar_archive(package_dir: Path, archive_path: Path, *, mode: str) -> None:
|
||||
with tarfile.open(archive_path, mode) as archive:
|
||||
options = {"compresslevel": 6} if mode == "w:gz" else {}
|
||||
with tarfile.open(archive_path, mode, **options) as archive:
|
||||
for path in package_entries(package_dir):
|
||||
archive.add(
|
||||
path,
|
||||
|
||||
Reference in New Issue
Block a user