Skip to content

osqp: add build-osqp.yml for riscv64 wheels - #895

Merged
luhenry merged 1 commit into
mainfrom
osqp
Sep 4, 2026
Merged

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

Conversation

@luhenry

@luhenry luhenry commented Sep 4, 2026

Copy link
Copy Markdown
Member

Builds the pybind11 extension that FetchContent-pulls the C osqp solver (builtin, dependency-free algebra backend) and links it statically. Upstream publishes no riscv64 wheel.

Mirrors upstream's build_default.yml, using its own cibuildwheel.toml.

Differs from upstream

  • Skips the osqp.nn (torch) tests on every interpreter - torch has no riscv64 wheel, same reason upstream skips them on manylinux_aarch64.
  • Pins SETUPTOOLS_SCM_PRETEND_VERSION_FOR_OSQP - the licence patch dirties the tag checkout, which would otherwise poison the version.

Testing

  • Upstream's own suite (src/osqp/tests), minus nn_test.py.

License: The extension statically links osqp/osqp's builtin backend, which bundles QDLDL and AMD (BSD-3-Clause); upstream's own wheels ship neither the Apache-2.0 NOTICE nor AMD's licence, so the patch adds both.

Patches

  • 0001-package-vendored-notice-and-amd-licence.patch - To upstream, not yet submitted. Without it the wheel is missing the NOTICE/AMD licence texts Apache-2.0 and BSD-3-Clause require; reproduces on every platform, not riscv64-only.

Built on cp312; full suite passed except the deselected nn tests.

Builds osqp-python from a checkout at the release tag with cibuildwheel,
using upstream's own cibuildwheel.toml and the builtin (dependency-free)
algebra backend that CMakeLists.txt already defaults to. torch has no
riscv64 wheel, so testing follows upstream's own aarch64/free-threaded
override that skips the osqp.nn tests. A patch adds the vendored osqp C
library's NOTICE and AMD licence to the wheel's licence-files list.
@luhenry
luhenry merged commit 3593513 into main Sep 4, 2026
9 checks passed
@luhenry
luhenry deleted the osqp branch September 4, 2026 06:57
@luhenry luhenry mentioned this pull request Sep 4, 2026
@luhenry luhenry linked an issue Sep 4, 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.

osqp riscv64 support

1 participant