Skip to content
Draft
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
1 change: 1 addition & 0 deletions docs/packages/pybammsolvers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ versions:
- filename: pybammsolvers-0.11.0-cp314-cp314-manylinux_2_39_riscv64.whl
sha256: adb4bc7185be249a5f2814ab23bec3881be8b0ec6bfb891d3cd3e2dc1c83c7b7
requires-python: <3.15,>=3.10
- version: 0.11.1
42 changes: 42 additions & 0 deletions patches/pybammsolvers/0.11.1/0001-license-files.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
From c4a76c425b6d2c7353017e91b772d4cba7003e6c Mon Sep 17 00:00:00 2001
From: Ludovic Henry <git@ludovic.dev>
Date: Thu, 15 Oct 2026 03:53:34 +0000
Subject: [PATCH] pybammsolvers: ship SUNDIALS and SuiteSparse licence files in
the wheel

idaklu links at runtime (via the RPATH entries CMakeLists.txt sets) against
SUNDIALS (BSD-3-Clause) and SuiteSparse's BTF/KLU (LGPL-2.1-or-later) and
AMD/COLAMD/SuiteSparse_config (BSD-3-Clause), both built from the git
submodules below at build time and vendored into the wheel by the repair
step, but license-files only lists the project's own LICENSE. Add the
submodules' licence files so dist-info/licenses carries them too.

Upstream-Status: To upstream [no write access to pybamm-team/PyBaMM from this session]
---
packages/pybammsolvers/pyproject.toml | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/packages/pybammsolvers/pyproject.toml b/packages/pybammsolvers/pyproject.toml
index b30efb6..bd3d7fa 100644
--- a/packages/pybammsolvers/pyproject.toml
+++ b/packages/pybammsolvers/pyproject.toml
@@ -15,7 +15,15 @@ build-backend = "scikit_build_core.build"
name = "pybammsolvers"
description = "Python interface for the IDAKLU solver"
requires-python = ">=3.10,<3.16"
-license-files = ["LICENSE"]
+license-files = [
+ "LICENSE",
+ # SUNDIALS and SuiteSparse (BTF, KLU: LGPL-2.1-or-later; AMD, COLAMD,
+ # SuiteSparse_config: BSD-3-Clause) are built from the git submodules below and
+ # linked into the compiled idaklu extension, but neither licence ships in the
+ # wheel today.
+ "sundials/LICENSE",
+ "SuiteSparse/LICENSE.txt",
+]
readme = "README.md"
# version.py stays the source of truth; a pre-commit hook mirrors it here.
version = "0.11.1"
--
2.43.0

Loading