poetry: lazy-wheel causes poetry to use all the RAM
[tool.poetry]
name = "repro"
version = "0.1.0"
description = ""
authors = []
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
ruff = "^0.1.15"
[tool.poetry.group.jax.dependencies]
jaxlib = { extras = [
"cuda12-pip",
], version = "^0.4.21+cuda12.cudnn89", source = "jax-releases" }
jax = { extras = ["cuda12-pip"], version = "^0.4.21" }
[[tool.poetry.source]]
name = "jax-releases"
url = "https://storage.googleapis.com/jax-releases/jax_cuda_releases.html"
priority = "explicit"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
if we do not disable lazy wheel then trying to poetry install this (with an empty cache) causes poetry to use all the RAM until the OS kills it
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Comments: 18 (17 by maintainers)
cachecontrol 0.14 is released with the fix, so I think the only fixes that really need making before release are
ok, I think the confusing server behaviour is actually a bug in cachecontrol
Cache-Control: no-cacheand therefore does not try to respond to it from the cacheso this unconditionally loads the cached response, and sees a
Last-Modifiedheader. That causes cachecontrol to add anIf-Modified-Sinceheader, and that causes the server to return 304.Then we end up using the cached response anyway, which was for the whole wheel and not for the range request at all
I think the issue is
HTTPRepository._get_info_from_wheel()recursing into itself