Skip to content

Commit a7a13bf

Browse files
committed
arrow-odbc: only install a pyarrow wheel in the test env
pyarrow 26.0.0 is out on PyPI as an sdist only for riscv64, and pypi.riseproject.dev's newest riscv64 wheel is 25.0.1. arrow-odbc's `pyarrow>=8.0.0` lets pip pick the 26.0.0 sdist, whose build fails ("Could not find a package configuration file provided by Arrow"), so installing the freshly built wheel failed for both 10.5.0 and 10.6.0 before any test ran. Restrict pyarrow to binary wheels so it resolves to the riscv64 wheel instead.
1 parent a8ed741 commit a7a13bf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/workflows/build-arrow-odbc.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ jobs:
180180
--wheel-dir {dest_dir}
181181
{wheel}
182182
CIBW_TEST_REQUIRES: pytest
183+
# arrow-odbc only asks for `pyarrow>=8.0.0`, so without this pip
184+
# takes PyPI's newest pyarrow sdist (which has no riscv64 wheel and
185+
# can't find an Arrow C++ install to build against) over the latest
186+
# riscv64 wheel on pypi.riseproject.dev.
187+
CIBW_TEST_ENVIRONMENT: PIP_ONLY_BINARY=pyarrow
183188
CIBW_TEST_SOURCES: tests
184189
CIBW_TEST_COMMAND: python -m pytest -v tests/test_riscv64_smoke.py
185190

0 commit comments

Comments
 (0)