Commit 3ba800f6 by Riccardo Albertazzi Committed by GitHub

fix: disable wheel content validation (#7987)

avoid out of memory issues
parent 198d6ff8
......@@ -101,7 +101,10 @@ class WheelInstaller:
def install(self, wheel: Path) -> None:
with WheelFile.open(wheel) as source:
try:
source.validate_record()
# Content validation is temporarily disabled because of
# pypa/installer's out of memory issues with big wheels. See
# https://github.com/python-poetry/poetry/issues/7983
source.validate_record(validate_contents=False)
except _WheelFileValidationError as e:
self.invalid_wheels[wheel] = e.issues
install(
......
......@@ -335,6 +335,7 @@ def test_execute_prints_warning_for_yanked_package(
assert error.count("yanked") == 0
@pytest.mark.skip(reason="https://github.com/python-poetry/poetry/issues/7983")
def test_execute_prints_warning_for_invalid_wheels(
config: Config,
pool: RepositoryPool,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment