Skip to content

Commit b085400

Browse files
committed
chore: Prefer uv over pip for dependencies
1 parent 584668a commit b085400

File tree

4 files changed

+36
-4
lines changed

4 files changed

+36
-4
lines changed

scripts/generate-linux.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ printf "Submodule is checked out at commit: $(git submodule status)\n\n"
88

99
echo "Setting up Python dependencies..."
1010
${PYBIN}/python --version
11-
${PYBIN}/pip install -r requirements.txt
11+
12+
# Check for uv first (faster), then fall back to pip
13+
if command -v uv &> /dev/null; then
14+
echo "Using uv to install dependencies..."
15+
uv add -r requirements.txt
16+
else
17+
echo "Using pip to install dependencies..."
18+
${PYBIN}/pip install -r requirements.txt || ${PYBIN}/pip3 install -r requirements.txt
19+
fi
1220

1321
cd ./bdk-ffi/bdk-ffi/
1422

scripts/generate-macos-arm64.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ printf "Submodule is checked out at commit: $(git submodule status)\n\n"
88

99
echo "Setting up Python dependencies..."
1010
python3 --version
11-
pip install -r requirements.txt
11+
12+
# Check for uv first (faster), then fall back to pip
13+
if command -v uv &> /dev/null; then
14+
echo "Using uv to install dependencies..."
15+
uv add -r requirements.txt
16+
else
17+
echo "Using pip to install dependencies..."
18+
pip install -r requirements.txt || pip3 install -r requirements.txt
19+
fi
1220

1321
cd ./bdk-ffi/bdk-ffi/
1422

scripts/generate-macos-x86_64.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ printf "Submodule is checked out at commit: $(git submodule status)\n\n"
88

99
echo "Setting up Python dependencies..."
1010
python3 --version
11-
pip install -r requirements.txt
11+
12+
# Check for uv first (faster), then fall back to pip
13+
if command -v uv &> /dev/null; then
14+
echo "Using uv to install dependencies..."
15+
uv add -r requirements.txt
16+
else
17+
echo "Using pip to install dependencies..."
18+
pip install -r requirements.txt || pip3 install -r requirements.txt
19+
fi
1220

1321
cd ./bdk-ffi/bdk-ffi/
1422

scripts/generate-windows.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ printf "Submodule is checked out at commit: $(git submodule status)\n\n"
88

99
echo "Setting up Python dependencies..."
1010
python3 --version
11-
pip install -r requirements.txt
11+
12+
# Check for uv first (faster), then fall back to pip
13+
if command -v uv &> /dev/null; then
14+
echo "Using uv to install dependencies..."
15+
uv add -r requirements.txt
16+
else
17+
echo "Using pip to install dependencies..."
18+
pip install -r requirements.txt || pip3 install -r requirements.txt
19+
fi
1220

1321
cd ./bdk-ffi/bdk-ffi/
1422

0 commit comments

Comments
 (0)