Skip to content

(Micro-Fix) Auto-install uv in setup-python.sh if missing#3346

Closed
JVSCHANDRADITHYA wants to merge 2 commits intoadenhq:mainfrom
JVSCHANDRADITHYA:uv_addition
Closed

(Micro-Fix) Auto-install uv in setup-python.sh if missing#3346
JVSCHANDRADITHYA wants to merge 2 commits intoadenhq:mainfrom
JVSCHANDRADITHYA:uv_addition

Conversation

@JVSCHANDRADITHYA
Copy link
Contributor

@JVSCHANDRADITHYA JVSCHANDRADITHYA commented Feb 3, 2026

Description

Improve setup-python.sh to automatically install uv when it is not already available, instead of exiting with an error.

This makes the setup script more robust for fresh environments and aligns its behavior with quickstart.sh.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

Related Issues

N/A

[Adds on top of #623]

Changes Made

  • Added auto-install logic for uv when it is missing
  • Supports installation via curl or wget
  • Fails with a clear error if neither downloader is available
  • Preserves existing behavior once uv is installed

Testing

Describe the tests you ran to verify your changes:

  • Unit tests pass (cd core && pytest tests/)
  • Lint passes (cd core && ruff check .)
  • Manual testing performed

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Screenshots (if applicable)

image

@sid-stack001
Copy link

sid-stack001 commented Feb 3, 2026

Works, the failed test is due to the absence of requirement-dev.txt. It should work. No problem with the shell script.
image

@JVSCHANDRADITHYA
Copy link
Contributor Author

Synced with main branch, all checks passed

Thank you @sid-stack001 for testing this out

@RichardTang-Aden
Copy link
Collaborator

Hi setup-python.sh is deprecated and uv will be automatically installed with quickstart.sh. We will cleanup setup-python.sh ASAP

@JVSCHANDRADITHYA JVSCHANDRADITHYA deleted the uv_addition branch February 7, 2026 10:30
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.

3 participants