Skip to content

FormCut 2.24.0: pin OpenCV's build to scikit-build 0.19.1 so the desktop builds run again - #49

Merged
nodemode-ai merged 1 commit into
mainfrom
fix/opencv-scikit-build-2.24.0
Dec 4, 2026
Merged

nodemode-ai merged 1 commit into
mainfrom
fix/opencv-scikit-build-2.24.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

FormCut 2.24.0: pin OpenCV's build to scikit-build 0.19.1 so the desktop builds run again

Summary

All four 2.24.0 desktop builds in FormCompiler (Linux, macOS arm64, macOS Intel, Windows) stopped in backend/prepare_cv.py with AttributeError: module 'skbuild.cmaker' has no attribute 'CMaker' while pip was getting OpenCV's build requirements.

opencv-python 4.12.0.88 asks for scikit-build>=0.14.0 with no upper bound, and its setup.py calls skbuild.cmaker.CMaker. scikit-build 1.0.0, published 2 Dec 2026, removed it, so every OpenCV source build since then picks 1.0.0 and fails. Nothing in FormCut changed.

Changes

  • backend/prepare_cv.py: a BUILD_CONSTRAINTS pin of scikit-build==0.19.1, the last 0.x release and the one every earlier build resolved to. constrain_build writes it to the build's temporary folder and names it in PIP_BUILD_CONSTRAINT and PIP_CONSTRAINT for the pip that builds OpenCV, on every platform, Windows' patched sdist included. The engine's own requirements are unchanged.
  • backend/HASHOUT_LOG.md: the reason, and when to lift the pin.

Commits

1 commit on top of main (48ac59d), by nodemode-ai, with a body and no trailers. The version stays 2.24.0: there is no v2.24.0 tag or release yet.

Tests

  • Reproduced here with the runners' pip 26.2.1: the same pip step fails with the CMaker error without the pin, and gets past OpenCV's build requirements with it (also checked with 0.18.1).
  • tests/test_prepare_cv.py: 7 passed.
  • Not run here: the full OpenCV compile and the frozen engine; the FormCompiler runners are the check.

Merging

Merge commit, no squash. Then run formai-build, which offers to move compile_v2.24.0 to the new main and build 2.24.0 again.

…p builds run again (2.24.0)

All four 2.24.0 desktop builds stopped in prepare_cv.py with "module
'skbuild.cmaker' has no attribute 'CMaker'" while pip got OpenCV's build
requirements. opencv-python 4.12.0.88 asks for scikit-build>=0.14.0 with
no upper bound and calls skbuild.cmaker.CMaker; scikit-build 1.0.0, out
on 2 Dec 2026, removed it. Nothing in formcut changed.

prepare_cv.py writes a constraints file pinning scikit-build==0.19.1, the
last 0.x and what every earlier build used, and names it in
PIP_BUILD_CONSTRAINT and PIP_CONSTRAINT for the pip that builds OpenCV,
on every platform. With pip 26.2.1 the same step fails without the pin and
gets past OpenCV's build requirements with it. tests/test_prepare_cv.py
passes. The reasoning is in backend/HASHOUT_LOG.md.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner December 3, 2026 22:53
@nodemode-ai
nodemode-ai merged commit f0afe1f into main Dec 4, 2026
8 checks passed
@nodemode-ai
nodemode-ai deleted the fix/opencv-scikit-build-2.24.0 branch December 4, 2026 03:10
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.

1 participant