Skip to content

qdldl: add build-qdldl.yml for riscv64 wheels - #1064

Merged
luhenry merged 1 commit into
mainfrom
qdldl
Sep 6, 2026
Merged

qdldl: add build-qdldl.yml for riscv64 wheels#1064
luhenry merged 1 commit into
mainfrom
qdldl

Conversation

@luhenry

@luhenry luhenry commented Sep 6, 2026

Copy link
Copy Markdown
Member

Compiles a pybind11/CMake extension around the QDLDL C library and its vendored AMD ordering routine. Upstream publishes no riscv64 wheel.

Mirrors upstream's build.yml.

Differs from upstream

  • checkout uses submodules: true only, no macOS/Windows matrix, no Cython-freethreading flag - riscv64 is Linux-only and cibuildwheel enables the target directly via only:.

Testing

  • same as upstream (pytest tests), plus asserting the licence fix below stays packaged.

License: Wheel bundles AMD (BSD-3-Clause, vendored from SuiteSparse) statically linked into libqdldlamd.a; upstream's own wheels omit its licence text, so the patch adds it.

Patches

  • 0001-Package-the-vendored-AMD-ordering-library-s-licence.patch - To upstream [not yet submitted]. Without it the wheel ships AMD's object code with no BSD-3-Clause notice. Reproduces on any arch, not riscv64-only.

Built on cp312; 9 passed.

Builds riscv64 wheels for qdldl 0.1.9.post1 (the LDL' factorization solver
used by the already-merged osqp package), following the build-from-checkout
shape used by build-osqp.yml/build-fonttools.yml. The C library is vendored
as a git submodule rather than FetchContent (unlike osqp's own C core), so
the checkout step needs submodules: true instead.

Includes a patch to package the vendored AMD ordering library's BSD-3-Clause
licence alongside qdldl-python's own Apache-2.0 LICENSE, mirroring the
osqp/osqp-python licensing fix for the same underlying AMD dependency.
@luhenry
luhenry merged commit bb4b96a into main Sep 6, 2026
9 checks passed
@luhenry
luhenry deleted the qdldl branch September 6, 2026 14:49
@luhenry luhenry mentioned this pull request Sep 6, 2026
@luhenry luhenry linked an issue Sep 6, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

qdldl riscv64 support

1 participant