4 ms·
Good luck if you need cross-platform `requirements.txt` files.
by epage 11mo ago
Good luck if you need cross-platform `requirements.txt` files.
- mk89 11mo agoThis 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-customize-a-requirements-txt-for-multiple-environments https://stackoverflow.com/questions/17803829/how-to-customiz...
- trenchpilgrim 11mo agoBut 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.
- freehorse 11mo agoHow does uv solve that? Like, if you use dependencies that do not cross platforms very well?
- mirashii 11mo agouv 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.