File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,7 +116,13 @@ try {
116116# 6. Install hey-cli
117117Write-Host " "
118118Write-Host " Installing hey-cli-python..." - ForegroundColor Cyan
119- & uv tool install hey- cli- python -- force
119+ $installTarget = " hey-cli-python"
120+ if (Test-Path " pyproject.toml" ) {
121+ $installTarget = " ."
122+ Write-Host " Detected local pyproject.toml. Installing from source..." - ForegroundColor Gray
123+ }
124+
125+ & uv tool install " $installTarget " -- force
120126
121127Write-Host " "
122128Write-Host " ============ SUCCESS =============" - ForegroundColor Green
Original file line number Diff line number Diff line change @@ -101,10 +101,17 @@ ollama pull "$MODEL" || echo -e "${RED}Warning: Could not pull $MODEL. Ensure 'o
101101
102102# 6. Install hey-cli
103103echo -e " \n${BLUE} Installing hey-cli-python...${NC} "
104+ # Use the local package if we're running from within the repository
105+ INSTALL_TARGET=" hey-cli-python"
106+ if [ -f " pyproject.toml" ]; then
107+ INSTALL_TARGET=" ."
108+ echo -e " 💡 Detected local pyproject.toml. Installing from source..."
109+ fi
110+
104111if [ " $( uname -s) " = " Darwin" ] && [ " $( uname -m) " = " x86_64" ] && [ " $( sysctl -in sysctl.proc_translated 2> /dev/null) " = " 1" ]; then
105- arch -arm64 uv tool install hey-cli-python --force
112+ arch -arm64 uv tool install " $INSTALL_TARGET " --force
106113else
107- uv tool install hey-cli-python --force
114+ uv tool install " $INSTALL_TARGET " --force
108115fi
109116
110117echo -e " \n${GREEN} ============ SUCCESS =============${NC} "
You can’t perform that action at this time.
0 commit comments