@@ -107,11 +107,9 @@ def __init__(
107
107
distribution_prefix : str ,
108
108
strip_path_prefixes = None ,
109
109
compression = zipfile .ZIP_DEFLATED ,
110
- force_zip64 = False ,
111
110
** kwargs ,
112
111
):
113
112
self ._distribution_prefix = distribution_prefix
114
- self ._force_zip64 = force_zip64
115
113
116
114
self ._strip_path_prefixes = strip_path_prefixes or []
117
115
# Entries for the RECORD file as (filename, hash, size) tuples.
@@ -156,7 +154,7 @@ def arcname_from(name):
156
154
hash = hashlib .sha256 ()
157
155
size = 0
158
156
with open (real_filename , "rb" ) as fsrc :
159
- with self .open (zinfo , "w" , force_zip64 = self . _force_zip64 ) as fdst :
157
+ with self .open (zinfo , "w" , force_zip64 = True ) as fdst :
160
158
while True :
161
159
block = fsrc .read (2 ** 20 )
162
160
if not block :
@@ -243,7 +241,6 @@ def __init__(
243
241
compress ,
244
242
outfile = None ,
245
243
strip_path_prefixes = None ,
246
- force_zip64 = False ,
247
244
):
248
245
self ._name = name
249
246
self ._version = normalize_pep440 (version )
@@ -253,7 +250,6 @@ def __init__(
253
250
self ._platform = platform
254
251
self ._outfile = outfile
255
252
self ._strip_path_prefixes = strip_path_prefixes
256
- self ._force_zip64 = force_zip64
257
253
self ._compress = compress
258
254
self ._wheelname_fragment_distribution_name = escape_filename_distribution_name (
259
255
self ._name
@@ -272,7 +268,6 @@ def __enter__(self):
272
268
distribution_prefix = self ._distribution_prefix ,
273
269
strip_path_prefixes = self ._strip_path_prefixes ,
274
270
compression = zipfile .ZIP_DEFLATED if self ._compress else zipfile .ZIP_STORED ,
275
- force_zip64 = self ._force_zip64 ,
276
271
)
277
272
return self
278
273
@@ -483,11 +478,6 @@ def parse_args() -> argparse.Namespace:
483
478
type = Path ,
484
479
help = "Pass in the stamp info file for stamping" ,
485
480
)
486
- output_group .add_argument (
487
- "--force_zip64" ,
488
- action = "store_true" ,
489
- help = "Forces usage of zip64" ,
490
- )
491
481
492
482
return parser .parse_args (sys .argv [1 :])
493
483
@@ -546,7 +536,6 @@ def main() -> None:
546
536
outfile = arguments .out ,
547
537
strip_path_prefixes = strip_prefixes ,
548
538
compress = not arguments .no_compress ,
549
- force_zip64 = arguments .force_zip64 ,
550
539
) as maker :
551
540
for package_filename , real_filename in all_files :
552
541
maker .add_file (package_filename , real_filename )
0 commit comments