by anotherpaulg on 3/6/25, 3:18 AM with 14 comments
by jauntywundrkind on 3/6/25, 3:42 AM
There also weren't docs for building/running it from source, which is usually what if recent Debian packages aren't available (they aren't).
It took some tinkering (chaotically trying uv sync, uv venv commands, hacking pyproject.toml lightly after hitting some errors)… but eventually I built a wrapper script that runs:
uv run --project /opt/aider-git aider $*
There was definitely considerable angst over this process. I've rarely seen a project that left me so without guidance for how to run it myself. Wading into python projects often feels like it requires a long history of python packager/build tools knowledge, and has brought me considerably suffering. I've muddled through many dozens of projects, but never a moment of illumination, a feeling that I grok the scene, understand the pieces and how the tool is working those components together. There's lots of different tools & epochs of python, and it feels like there's no core truth, just many different semi-overlapping styles and techniques and you need context & experience to figure out what to apply.
Where-as node_modules and package.json#scripts have felt so direct, isolated, self explanatory to me. Feeling super abandoned by python tooling is a feeling I'm used to. It was, at least, some comfort to have squeaked out a win once again though!
by anotherpaulg on 3/6/25, 3:53 AM
https://aider.chat/2025/01/15/uv.html
Offering these install methods dramatically reduced the number of GitHub issues from users with conflicted/broken python environments.
by FrenchyJiby on 3/6/25, 3:42 AM
Once we have a way to get package version bumps, I can finally leave poetry for the speed of uv!
Of particular interest to me, uv has "workspaces", perfect for monorepo-like sub-packages: useful for plugin-based workflows where you may want to keep a few independent plugins in one repo.
by vessenes on 3/6/25, 3:31 AM
by zitterbewegung on 3/6/25, 3:49 AM
I still use either pip -m venv venv or conda. I really tried to figure out uv but I just switch back to venv because it was too hard to use.
Also, when I tried Aider I really didn't like this feature
* Aider automatically git commits changes with a sensible commit message.
since I rather actually do the commits (I'm guessing this can be turned off).
by WiSaGaN on 3/6/25, 3:48 AM
by kelvie on 3/6/25, 3:31 AM
For this particular use case, you can use `uvx`, which is a shorthand for `uv tool run`, which is a great alternative for installing random python tools in isolation.
Such as this one. Or for example, python-kasa (for controlling TP Kasa plugs) or esphome (the build script)
Prior to doing this, it was either manage virtualenvs (one for each tool), or rely on a mess of Arch packages.
by yig on 3/6/25, 3:47 AM
uv tool run --python 3.11 --from aider-chat@latest aider