Open romaia opened 2 months ago
For whatever reason, that uv pip install netifaces
is not building the package. It must've already been built and cached by the time you ran that command (otherwise, we'd see Prepared 1 package in...
). So I suspect something else is going on here...?
Indeed, testing on 3 fresh vms (ubuntu 24/22/20), the problem does not happen, so I guess something in my current setup is kinda of broken.
Will try to dig deeper to find out what.
netifaces has wheels for python 3.8 (all platforms?) and 3.9 (not all platforms)? And no pre-built wheels available for newer pythons (>=3.10). So python version will be important for what happens there. You can use a strength of uv - easy to switch python version - configure python 3.8 for the project and that should work well for netifaces - judging from the wheel list on PyPI (See the download files view).
Using uv version 0.4.9 on linux, I cant
uv add netifaces
, but if I install it withuv pip install netifaces
before hand, it works.Steps to reproduce. On a new project:
results in:
but if I run:
It install successfully, and after that, uv add works:
I am not sure if its a problem with netifaces itself, but since uv pip works, seems like a issue with uv add