News for hackers. Stuff that matters.
Re:Uv is fantastic, but its package management UX is a mess by yorwba on Friday May 22, 2026 @04:42AM (#48233454)
Python's import system is extensible: https://docs.python.org/3/reference/import.html#import-hooks It might be possible to create a custom finder that will return 1.0.0 when running "import dependency_c" in dependency_a but 2.0.0 for the same import statement in dependency_b. You'll need to work around the module cache in sys.modules, though. And good luck trying this on a package that also hooks the import system...
Re:Uv is fantastic, but its package management UX is a mess by skeledrew on Monday May 25, 2026 @12:15AM (#48263340)
Yep that's pretty much how I do it, along with RPyC[0] for connection.

[0] https://rpyc.readthedocs.io/en/latest/