diff --git a/src/poetry/installation/wheel_installer.py b/src/poetry/installation/wheel_installer.py index 18e42e9cbd9..d25811f1d61 100644 --- a/src/poetry/installation/wheel_installer.py +++ b/src/poetry/installation/wheel_installer.py @@ -101,7 +101,10 @@ def enable_bytecode_compilation(self, enable: bool = True) -> None: 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( diff --git a/tests/installation/test_executor.py b/tests/installation/test_executor.py index 0ec3653ebcf..31663c5f629 100644 --- a/tests/installation/test_executor.py +++ b/tests/installation/test_executor.py @@ -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,