Skip to content

Commit 8e6eed5

Browse files
committed
fix: installers to favor local source for development (v1.1.1)
1 parent a09a85f commit 8e6eed5

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

install.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,13 @@ try {
116116
# 6. Install hey-cli
117117
Write-Host ""
118118
Write-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

121127
Write-Host ""
122128
Write-Host "============ SUCCESS =============" -ForegroundColor Green

install.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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
103103
echo -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+
104111
if [ "$(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
106113
else
107-
uv tool install hey-cli-python --force
114+
uv tool install "$INSTALL_TARGET" --force
108115
fi
109116

110117
echo -e "\n${GREEN}============ SUCCESS =============${NC}"

0 commit comments

Comments
 (0)