Skip to content

Commit 637b0a5

Browse files
committed
fix installing wheels correctly
1 parent e58035e commit 637b0a5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

ci/utilities/install_wheels_locally.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,19 @@
1717
# Install wheels stored in `JAXCI_OUTPUT_DIR` locally using the Python binary
1818
# set in JAXCI_PYTHON. Use the absolute path to the `find` utility to avoid
1919
# using the Windows version of `find` on Windows.
20-
WHEELS=$(/usr/bin/find "$JAXCI_OUTPUT_DIR/" -type f \( -name "*jaxlib*" -o -name "*jax*cuda*pjrt*" -o -name "*jax*cuda*plugin*" \))
20+
WHEELS=( $(/usr/bin/find "$JAXCI_OUTPUT_DIR/" -type f \( -name "*jaxlib*" -o -name "*jax*cuda*pjrt*" -o -name "*jax*cuda*plugin*" \)) )
2121

22-
for wheel in "$WHEELS"; do
22+
echo $WHEELS
23+
if [[ -z "$WHEELS" ]]; then
24+
echo "ERROR: No wheels found under $JAXCI_OUTPUT_DIR"
25+
exit 1
26+
fi
27+
28+
for wheel in "${WHEELS[@]}"; do
2329
echo "Installing $(basename $wheel) ..."
2430
"$JAXCI_PYTHON" -m pip install "$wheel"
2531
done
2632

2733
echo "Installing the JAX package in editable mode at the current commit..."
2834
# Install JAX package at the current commit.
29-
"$JAXCI_PYTHON" -m pip install -U -e .
35+
"$JAXCI_PYTHON" -m pip install -U -e .

0 commit comments

Comments
 (0)