Skip to content

Commit 19f76d5

Browse files
ralbertazziradoering
authored andcommitted
fix: disable wheel content validation (#7987)
avoid out of memory issues (cherry picked from commit 3ba800f)
1 parent a2175ff commit 19f76d5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/poetry/installation/wheel_installer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ def enable_bytecode_compilation(self, enable: bool = True) -> None:
101101
def install(self, wheel: Path) -> None:
102102
with WheelFile.open(wheel) as source:
103103
try:
104-
source.validate_record()
104+
# Content validation is temporarily disabled because of
105+
# pypa/installer's out of memory issues with big wheels. See
106+
# https://github.com/python-poetry/poetry/issues/7983
107+
source.validate_record(validate_contents=False)
105108
except _WheelFileValidationError as e:
106109
self.invalid_wheels[wheel] = e.issues
107110
install(

tests/installation/test_executor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ def test_execute_prints_warning_for_yanked_package(
335335
assert error.count("yanked") == 0
336336

337337

338+
@pytest.mark.skip(reason="https://github.com/python-poetry/poetry/issues/7983")
338339
def test_execute_prints_warning_for_invalid_wheels(
339340
config: Config,
340341
pool: RepositoryPool,

0 commit comments

Comments
 (0)