-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
32 lines (27 loc) · 998 Bytes
/
Copy pathinstall.sh
File metadata and controls
32 lines (27 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env sh
# PyVectorhound installer — detects pip or uv and installs the package.
#
# Usage:
# curl -sSfL https://raw.githubusercontent.com/Mullassery/pyvectorhound/main/install.sh | sh
set -e
PACKAGE="pyvectorhound"
echo "Installing $PACKAGE..."
if command -v uv >/dev/null 2>&1; then
echo "Detected uv — running: uv pip install $PACKAGE"
uv pip install "$PACKAGE"
elif command -v pip3 >/dev/null 2>&1; then
echo "Detected pip3 — running: pip3 install $PACKAGE"
pip3 install "$PACKAGE"
elif command -v pip >/dev/null 2>&1; then
echo "Detected pip — running: pip install $PACKAGE"
pip install "$PACKAGE"
else
echo ""
echo "Error: no pip or uv found. Install one first:"
echo " pip: https://pip.pypa.io/en/stable/installation/"
echo " uv: curl -LsSf https://astral.sh/uv/install.sh | sh"
exit 1
fi
echo ""
echo "PyVectorhound installed. Verify with:"
echo ' python -c "import pyvectorhound; print(pyvectorhound.__version__)"'