Skip to content

Explain: use uv for the Claude Code plugin's dependencies#101

Merged
barisione merged 1 commit intomasterfrom
use-uv
Jan 19, 2026
Merged

Explain: use uv for the Claude Code plugin's dependencies#101
barisione merged 1 commit intomasterfrom
use-uv

Conversation

@barisione
Copy link
Collaborator

@barisione barisione commented Jan 19, 2026

The previous approach would fail in these two cases:

  1. No Python installed: run.sh exited immediately with "python3 not found".
  2. Debian/Ubuntu system Python: ensurepip module doesn't work as the maintainers want users to use system packages.

To make things easier, we can instead use uv (downloading it if necessary) to manage the Python interpreter and the dependencies.

uv is also much faster, which should decrease the chance of timeouts when the plugin is run for the first time.

The only problem we should have now is the lack or wget or curl, but that seems less likely.

The previous approach would fail in these two cases:

1. No Python installed: `run.sh` exited immediately with "python3 not
   found".
2. Debian/Ubuntu system Python: `ensurepip` module doesn't work as the
   maintainers want users to use system packages.

To make things easier, we can instead use `uv` (downloading it if
necessary) to manage the Python interpreter and the dependencies.

`uv` is also much faster, which should decrease the chance of timeouts
when the plugin is run for the first time.

The only problem we should have now is the lack or wget or curl, but
that seems less likely.
@barisione barisione marked this pull request as ready for review January 19, 2026 18:32
Copy link
Contributor

@mark-undoio mark-undoio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me from a read through. As discussed, I will also try to test it.

@barisione barisione merged commit d3442f7 into master Jan 19, 2026
2 checks passed
@barisione barisione deleted the use-uv branch January 19, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants