Articles tagged with: uv

Workaround for uv/uvx future import bug

The uv and uvx tools have a very particular way to make virtual environments relocateable: they replace the shebang in python scripts with some polyglot magic, so that the executable is both a valid bash script and a python script at the same time. Unfortunately this breaks with a SyntaxError …

Read more »