News for hackers. Stuff that matters.
Re:Rye: A Hassle-Free Python Experience by p5a0u9l on Monday July 08, 2024 @11:03PM (#40912164)
Here I am and pip+venv+pyproject.toml work just fine. I don’t distribute outside our team, maybe that’s why?
Re:Rye: A Hassle-Free Python Experience by chefandy on Tuesday July 09, 2024 @01:22AM (#40912754)
Cross-platform applications that rely on binary libraries have always been the beginning of my Python dependency misery. It usually works fine, but when it doesn't, it's miserable.
Re:Rye: A Hassle-Free Python Experience by modeopfer on Tuesday July 09, 2024 @10:46AM (#40916751)
Same for me. Does rye help? Or what's your silver bullet?
Re:Rye: A Hassle-Free Python Experience by wormlord on Tuesday July 09, 2024 @11:50AM (#40917505)
PyInstaller + bundling the dlls and binaries works well for me
Re:Rye: A Hassle-Free Python Experience by chefandy on Tuesday July 09, 2024 @05:52PM (#40921628)
One annoying problem that I encountered with that approach was different binaries having different version conflicts on different platforms. Not unsolvable, but definitely unsolvable without a whole lot of irritation, and a huge PITA to maintain. It definitely makes it possible though, which is a whole lot better than nothing.
Re:Rye: A Hassle-Free Python Experience by chefandy on Tuesday July 09, 2024 @05:49PM (#40921596)
I haven't encountered any silver ammunition for that particular gun. I haven't worked on a big python project in a while, so I'm not sure if rye would do the trick.
Re:Rye: A Hassle-Free Python Experience by p5a0u9l on Thursday July 11, 2024 @12:00PM (#40938056)
I get that, but isn’t that a problem with dependency management itself and not the tools?
Re:Rye: A Hassle-Free Python Experience by mardifoufs on Tuesday July 09, 2024 @03:28AM (#40913433)
Try making a portable package that pulls pytorch with CUDA (reliably) with that set up. I don't even think it's possible as you can't add another package index when using python build.