8000 Enable true Zip64 support. by jsirois · Pull Request #2714 · pex-tool/pex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Enable true Zip64 support. #2714

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pex/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,16 @@ def teardown(self):
_MKDTEMP_SINGLETON = MktempTeardownRegistry()


# When Zip64 support was added to Python long ago, the limit was set to
# half of what it should be. Pex is always dealing with zips it creates
# via Python and so it does not need to worry about zip implemntations
# that don't support 4GB; so we monkeypatch our way out of this
# historical baggage to get working <= 4GB PEXes even on Python 2.7.
#
# See: https://github.com/python/cpython/issues/43003
setattr(zipfile, "ZIP64_LIMIT", (1 << 32) - 1)


class ZipFileEx(ZipFile):
"""A ZipFile that works around several issues in the stdlib.

Expand Down
Loading
0