Skip to content

Commit

Permalink
fix for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Jan 15, 2024
1 parent 0dda20c commit 7e46f47
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dev/release/verify-release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,17 @@ test_python() {
python -m build --wheel --outdir "${NANOARROW_TMPDIR}/python"
PYTHON_WHEEL_NAME=$(ls "${NANOARROW_TMPDIR}/python" | grep -e ".whl")

# On Windows bash, pip install needs a Windows-style path
if uname | grep -e "_NT-" >/dev/null; then
pushd "${NANOARROW_TMPDIR}"
PYTHON_WHEEL_PATH="$(pwd -W)/python/${PYTHON_WHEEL_NAME}"
popd
else
PYTHON_WHEEL_PATH="${NANOARROW_TMPDIR}/python/${PYTHON_WHEEL_NAME}"
fi

show_info "Installing Python package"
python -m pip install --force-reinstall "${NANOARROW_TMPDIR}/python/${PYTHON_WHEEL_NAME}[verify]"
python -m pip install --force-reinstall "${PYTHON_WHEEL_PATH}[verify]"

show_info "Testing wheel"
python -m pytest -vv
Expand Down

0 comments on commit 7e46f47

Please sign in to comment.