Skip to content

Commit

Permalink
apacheGH-40706: [CI][Python] Activate ARROW_PYTHON_VENV if defined in…
Browse files Browse the repository at this point in the history
… sdist-test job (apache#40707)

### Rationale for this change

[python-sdist](https://github.com/ursacomputing/crossbow/actions/runs/8355876590/job/22871821900) is failing.

### What changes are included in this PR?

Activate `ARROW_PYTHON_VENV` on `python_sdist_test.sh`

### Are these changes tested?

Via archery

### Are there any user-facing changes?

No
* GitHub Issue: apache#40706

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
raulcd authored Mar 21, 2024
1 parent 9be26e1 commit 63f95ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci/scripts/python_sdist_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ if [ -n "${PYARROW_VERSION:-}" ]; then
else
sdist=$(ls ${arrow_dir}/python/dist/pyarrow-*.tar.gz | sort -r | head -n1)
fi

if [ -n "${ARROW_PYTHON_VENV:-}" ]; then
. "${ARROW_PYTHON_VENV}/bin/activate"
fi

${PYTHON:-python} -m pip install ${sdist}

pytest -r s ${PYTEST_ARGS:-} --pyargs pyarrow

0 comments on commit 63f95ea

Please sign in to comment.