Skip to content

Commit 4a4f97f

Browse files
committed
fastnumbers: pin hypothesis to binary-only in test env
PyPI's newest hypothesis has no riscv64 wheel (6.156+ ships as a maturin/Rust build); pip resolved the highest version across both indexes and fell back to the sdist on cp314t, which fails building for riscv64gc (rustup does not recognize the triple). Scope PIP_ONLY_BINARY to hypothesis in CIBW_TEST_ENVIRONMENT so pip lands on our registry's riscv64 wheel (6.165.10) instead.
1 parent 536c2d1 commit 4a4f97f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/build-fastnumbers.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ jobs:
5757
CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }}
5858
# numpy has no riscv64 wheel on public PyPI.
5959
CIBW_ENVIRONMENT: PIP_EXTRA_INDEX_URL=https://pypi.riseproject.dev/simple/
60+
# PyPI's newest hypothesis has no riscv64 wheel (maturin sdist, needs Rust);
61+
# pin to binary-only so pip resolves our registry's riscv64 wheel instead
62+
# of the newer sdist-only release (gotcha 210).
63+
CIBW_TEST_ENVIRONMENT: PIP_ONLY_BINARY=hypothesis
6064
CIBW_TEST_REQUIRES: pytest pytest-faulthandler hypothesis typing_extensions numpy
6165
CIBW_TEST_COMMAND: >-
6266
cd {project} &&

0 commit comments

Comments
 (0)