Repository navigation
FormCut 2.24.0: pin OpenCV's build to scikit-build 0.19.1 so the desktop builds run again - #49
Merged
Merged
Conversation
…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.
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.
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.pywithAttributeError: 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.0with no upper bound, and itssetup.pycallsskbuild.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: aBUILD_CONSTRAINTSpin ofscikit-build==0.19.1, the last 0.x release and the one every earlier build resolved to.constrain_buildwrites it to the build's temporary folder and names it inPIP_BUILD_CONSTRAINTandPIP_CONSTRAINTfor 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), bynodemode-ai, with a body and no trailers. The version stays 2.24.0: there is no v2.24.0 tag or release yet.Tests
tests/test_prepare_cv.py: 7 passed.Merging
Merge commit, no squash. Then run
formai-build, which offers to movecompile_v2.24.0to the newmainand build 2.24.0 again.