Open Vinno97 opened 2 hours ago
You might want to add something like platform_system == "Linux"
to environments
? The system doesn't know that platform_system == 'Darwin'
and sys_platform == 'linux'
are mutually exclusive -- there's nothing in the spec that says they have to be, it's just true in practice.
Hi,
I've noticed that
uv
still tries to resolve packages that are supposed to be irrelevant for the configured environment. I'm working on a server with a private registry where we don't have Darwin packages. When I try to installipykernel
, however, I see it still tries to resolve a Darwin-specific package, which then fails as it isn't available in our registry. Specifically, it's aboutappnope
, which is configured as'appnope>=0.1.2;platform_system=="Darwin"'
in ipykernel' s pyproject.toml.(https://github.com/ipython/ipykernel/blob/8c4901d691b1f309da3b80eefad5af13d7418185/pyproject.toml#L32C6-L32C13)I'm using
uv
0.5.2 on RHEL.I think it might be related to https://github.com/astral-sh/uv/issues/9051#issuecomment-2470334438