Repository navigation
Conversation
cibuildwheel 4.3.5 builds CPython 3.15 by default. macOS x86_64 on 3.15 skips the torch tests like 3.13 and 3.14, and the free-threaded override covers cp315t. cp315t stays skipped until OSQP frees its adjoint-derivative buffers with the allocator that allocated them.
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CPython 3.15 was released in October and osqp has no 3.15 wheels yet, so
pip install osqpon 3.15 builds from the sdist, which needs CMake and a compiler.Changes
build_default.yml: cibuildwheel v3.3.1 → v4.3.5. cibuildwheel builds CPython 3.15 by default from 4.2.0, and 4.3.1 or later uses the final 3.15 release.cibuildwheel.toml: two existing overrides gain the 3.15 builds:cp315-macosx_x86_64joins the platforms that skip theosqp.nntests, because torch has no macOS x86_64 wheels.cp315t-*joins the free-threaded override.cp315tis skipped for now. On free-threaded 3.15 the adjoint-derivative tests crash. OSQP allocates 13 work buffers inadjoint_derivative_qdldlwithmalloc()and frees them withc_free, which isPyMem_RawFreehere. The fix is Allocate the adjoint derivative's QDLDL buffers with c_malloc osqp#799. OnceGIT_TAGpoints to an OSQP release that includes it, dropcp315t-*fromskip.derivative_test.pyunderPYTHONMALLOC=debug.Side effects of cibuildwheel 4, for review
requires-python >= 3.8is unchanged, so 3.8 falls back to the sdist.osqp.libs/msvcp140-<hash>.dll), because the pybind11 extension uses the C++ standard library. numpy and scipy wheels do the same, and it avoids "DLL load failed" on machines without the Visual C++ redistributable. If you'd rather not vendor it, setrepair-wheel-command = ""for Windows.Tested locally
On Windows with cibuildwheel 4.3.5, using the configured test commands:
cp315-win_amd64cp314t-win_amd64cp315t-win_amd64derivative_test.pyin two of two runs; with osqp/osqp#799 applied, 56 passed, 3 skipped--print-build-identifierslists cp315 for Linux (x86_64, aarch64), macOS (x86_64, arm64) and Windows (amd64, arm64), and no cp315t.🤖 Generated with Claude Code