Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build-xtgeo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ jobs:
PIP_ONLY_BINARY=numpy,pandas,scipy,pyarrow,h5py,hdf5plugin,matplotlib,segyio,shapely,pillow
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_XTGEO=${{ env.XTGEO_VERSION }}
CIBW_TEST_EXTRAS: dev
# pytest-benchmark's fixture reads Function._nodeid, which pytest 9.2 removed, so
# every benchmark test errors at setup; stay on the pytest 9.1 series.
CIBW_TEST_REQUIRES: pytest<9.2
CIBW_BEFORE_TEST: >-
pushd {package} &&
git clone --depth 1 https://github.com/equinor/xtgeo-testdata ../xtgeo-testdata || true
Expand Down
2 changes: 2 additions & 0 deletions docs/packages/xtgeo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ versions:
- filename: xtgeo-4.25.1-cp314-cp314-manylinux_2_39_riscv64.whl
sha256: 703bc84302d2072954bafa7408df138b32db75cbaf4e15ce454f66fdbf191b10
requires-python: '>=3.11'
- version: 4.26.0
- version: 4.27.0
34 changes: 34 additions & 0 deletions patches/xtgeo/4.26.0/0001-unpin-swig-for-riscv64.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ludovic Henry <git@ludovic.dev>
Date: Tue, 13 Oct 2026 07:54:08 +0000
Subject: [PATCH] unpin swig for riscv64

pyproject.toml's build-system.requires pins "swig<4.3.0". PyPI's swig
package only started publishing manylinux_riscv64 wheels at 4.3.1.post0,
so pip falls back to building swig itself from its sdist on riscv64 for
no reason that applies to this build: the pin (commit 839503b) exists to
avoid a SWIG 4.3.0 numpy.i regression that segfaulted under Python 3.8 +
pandas>2, and this release already requires Python >=3.11.

Drop the pin so pip resolves swig 4.5.1, which ships a riscv64 wheel.

Upstream-Status: Inappropriate [riscv64-only infra constraint; the pin's own Python 3.8 rationale no longer applies to this release]

Signed-off-by: Ludovic Henry <git@ludovic.dev>
---
pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyproject.toml b/pyproject.toml
index 718ff67..5b6f1cc 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -3,7 +3,7 @@ requires = [
"numpy>=2.0.0",
"pybind11",
"scikit-build-core[pyproject]>=0.10",
- "swig<4.3.0",
+ "swig",
]
build-backend = "scikit_build_core.build"

Loading
Loading