• Daniel Quinn@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    13 days ago

    Nope, pipx definitely can’t do that, but the idea that running your yourscript.py --help will automatically trigger the downloading of dependencies and installing them somewhere isn’t really appealing. I’m sure I’m not the only person who’s got uv configured to install the virtualenv in the local .venv folder rather than buried into my home dir, so this would come with the added surprise that every time I invoke the script, I’d get a new set of dependencies installed wherever I happen to be.

    I mean, it’s neat that you can do this, but as a user I wouldn’t appreciate the surprise behaviour. pipx isn’t perfect, but at least it lets you manage things like updates.

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      13 days ago

      I’m sure I’m not the only person who’s got uv configured to install the virtualenv in the local .venv folder

      That’s the default for projects. Script is a different run mode.

      every time I invoke the script, I’d get a new set of dependencies installed wherever I happen to be.

      Does that happen though? uv uses the cache location for these script dependencies, not your usual venv one. Where you call it from is not a factor.