Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Good luck if you need cross-platform `requirements.txt` files.


This is a good use case. Not sure how this is typically solved, I guess "requirements-os-version.txt"? A bit redundant and repetitive.

I would probably use something like this: https://stackoverflow.com/questions/17803829/how-to-customiz...


But then you have to m x n x o it for different combinations of Python version, OS, CPU architecture, GPU make/model... uv will solve it for you in milliseconds.


How does uv solve that? Like, if you use dependencies that do not cross platforms very well?


uv finds a dependency resolution that works for all platforms by default, and can do things like fork the resolution and choose different versions based on platform or python version requirements.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: