Skip to content

rapid-mlx 0.16.4 - #317210

Merged
BrewTestBot merged 2 commits into
Homebrew:mainfrom
raullenchai:rapid-mlx-0.16.0
Oct 28, 2026
Merged

BrewTestBot merged 2 commits into
Homebrew:mainfrom
raullenchai:rapid-mlx-0.16.0

Conversation

@raullenchai

Copy link
Copy Markdown
Contributor

The 0.16.0 PyPI base package adds lazy-loaded vision, image, and video runtimes. Their dependency tree is not source-buildable for this formula, so exclude_packages keeps Homebrew on the text-serving runtime. The formula is not a complete PyPI base installation. The existing 55 text resource blocks remain unchanged. brew update-python-resources --print-only resolves only 17 blocks with these exclusions and prunes shared text dependencies, including fastapi and transformers, so its output was not applied.

Local checks: brew style --formula rapid-mlx, brew audit --strict --online --formula rapid-mlx, and git diff --check passed. A source install and brew test were not run locally; BrewTestBot will validate the build.


  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>?
  • Is your test running fine brew test <formula>?
  • Does your build pass brew audit --strict <formula> (after doing HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

  • I did not use AI/LLM to create this PR, or I disclosed the tool/model below and reviewed its output; I did not attribute commits to AI and will answer maintainer questions and review comments myself without AI/LLM.

@github-actions github-actions Bot added python Python use is a significant feature of the PR or issue rust Rust use is a significant feature of the PR or issue macos-only Formula depends on macOS missing network sandbox The formula does not define network sandbox settings labels Oct 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Caution

Please do not modify the bottle block. Bottle block modifications can cause CI to misbehave.
@BrewTestBot will handle updating the bottle block before this PR is merged.

Comment thread Formula/r/rapid-mlx.rb Resolved
Comment thread Formula/r/rapid-mlx.rb Resolved
@raullenchai

Copy link
Copy Markdown
Contributor Author

Restored the existing bottle block per the check-bottle-block guidance; BrewTestBot can update it.

@github-actions github-actions Bot added autosquash Automatically squash pull request commits according to Homebrew style. ffmpeg FFMPEG use is a significant feature of the PR or issue labels Oct 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Caution

Please do not modify the bottle block. Bottle block modifications can cause CI to misbehave.
@BrewTestBot will handle updating the bottle block before this PR is merged.

@raullenchai
raullenchai force-pushed the rapid-mlx-0.16.0 branch 2 times, most recently from d8b2a8b to cb74a0e Compare October 12, 2026 17:29
@github-actions

Copy link
Copy Markdown
Contributor

Caution

Please do not modify the bottle block. Bottle block modifications can cause CI to misbehave.
@BrewTestBot will handle updating the bottle block before this PR is merged.

@github-actions github-actions Bot removed the autosquash Automatically squash pull request commits according to Homebrew style. label Oct 12, 2026
@raullenchai

Copy link
Copy Markdown
Contributor Author

Superseded by the 0.16.1 release. Closing this failed 0.16.0 update so the standard automated version update can proceed against the current release.

@raullenchai raullenchai reopened this Oct 13, 2026
@raullenchai

Copy link
Copy Markdown
Contributor Author

The macOS 15 CI failure came from hf-transfer building openssl-sys 0.9.104 against OpenSSL 4.0.3, which that crate rejects. Commit 4238c6779f4 adds the supported openssl@3 dependency and sets OPENSSL_DIR to its prefix, following existing Rust formula build patterns.

brew style Formula/r/rapid-mlx.rb and git diff --check pass locally. Reopening for native CI verification.

@github-actions github-actions Bot added the autosquash Automatically squash pull request commits according to Homebrew style. label Oct 13, 2026
@raullenchai

Copy link
Copy Markdown
Contributor Author

The first follow-up exposed Homebrew's conflicting recursive dependency audit (openssl@4 and openssl@3). I replaced it with a narrower fix in 46056f17e9d: build hf-transfer separately after removing its unused direct vendored-OpenSSL dependency. Its reqwest client then uses macOS native TLS; the unchanged Cargo lock builds successfully with cargo check --locked, and openssl-sys is absent from the active macOS dependency graph. brew style, Ruby syntax, and git diff --check pass locally.

@raullenchai

raullenchai commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor Author

The exact-head macOS 26 failure after the native-TLS fix was in the bundled opencv-python 4.14.0.94 source, which still accesses AVCodec::pix_fmts and AVCodec::supported_framerates; both fields are absent from the current FFmpeg API.

I pushed 31133c6e6e760f5609c3e1d135b9de1791cea2de, which stages opencv-python separately and applies the three corresponding upstream OpenCV FFmpeg 9 compatibility commits in their reviewed order before building the wheel. The exact sdist accepted all three patches cleanly. Local checks passed:

  • verified all patch URL SHA-256 values
  • applied the patches to the exact opencv-python 4.14.0.94 sdist without offsets
  • brew style Formula/r/rapid-mlx.rb
  • ruby -c Formula/r/rapid-mlx.rb
  • git diff --check

This preserves the existing OpenCV version and Python dependency set; it only backports the upstream compile compatibility fix.

@raullenchai

Copy link
Copy Markdown
Contributor Author

The OpenCV FFmpeg compatibility backport compiled successfully and produced the macOS 15 bottle. The exact-head failure moved to post-build audit/linkage:

  • cv2.abi3.so embedded the superenv gmake/clang shim paths in cv2.getBuildInformation()
  • sounddevice installed its bundled universal PortAudio binary
  • cv2.abi3.so directly linked libavif and openblas, which were only recursive dependencies

I pushed d6c2c72aefd633677a24e0f08d09821fd7f1e9aa. It follows existing core formula patterns to record gmake and the real compiler names in OpenCV build information, removes sounddevice's bundled cross-platform libraries and links its expected fallback path to the declared portaudio formula, and declares the two observed direct linkage dependencies.

Verification:

  • downloaded and inspected the exact failed bottle
  • confirmed the only shim strings in cv2.abi3.so were the three sanitized build-information fields
  • confirmed the bundled PortAudio dylib was the unexpected universal binary
  • verified sounddevice loads the declared single-architecture PortAudio 19.7.0 through the replacement fallback path
  • brew style Formula/r/rapid-mlx.rb, Ruby syntax, and git diff --check pass

@raullenchai

Copy link
Copy Markdown
Contributor Author

@daeho-ro The requested bottle-block and Python resource corrections are in place, and the follow-up native build/audit failures have been resolved at exact head d6c2c72aefd633677a24e0f08d09821fd7f1e9aa.

The complete CI run is now green on macOS 15, 26, and 27, including formula tests and post-build audits: https://github.com/Homebrew/homebrew-core/actions/runs/38443994357. Could you please re-review when convenient?

@raullenchai raullenchai changed the title rapid-mlx 0.16.0 rapid-mlx 0.16.2 Oct 16, 2026
@raullenchai

Copy link
Copy Markdown
Contributor Author

Updated this PR to the current upstream release, 0.16.2 (0.16.1 and 0.16.2 shipped while this was in review), so it does not need to be superseded by a separate bump:

  • url/sha256 now point at the rapid_mlx-0.16.2 sdist.
  • Added the new runtime dependency pypdf (pure Python, no extra dependencies on Python ≥ 3.11) as a resource.
  • All other pinned resources are unchanged; the earlier build fixes (native TLS for hf-transfer, the OpenCV FFmpeg backport, and the bottle audit/linkage fixes) are kept as-is.

I'll follow up on CI for the new head.

@github-actions github-actions Bot removed the autosquash Automatically squash pull request commits according to Homebrew style. label Oct 16, 2026
@raullenchai

Copy link
Copy Markdown
Contributor Author

@daeho-ro The autosquashed 0.16.2 exact head ce7fbba56d88ccffdddc4bade57ccd493c0efe62 now has a complete green CI run on macOS 15, 26, and 27, including formula tests and post-build audits: https://github.com/Homebrew/homebrew-core/actions/runs/38921713454. Could you please re-review when convenient?

@raullenchai raullenchai changed the title rapid-mlx 0.16.2 rapid-mlx 0.16.3 Oct 17, 2026
@raullenchai
raullenchai force-pushed the rapid-mlx-0.16.0 branch 2 times, most recently from 96225be to 8351f7f Compare October 17, 2026 15:05
@raullenchai

Copy link
Copy Markdown
Contributor Author

@daeho-ro This PR is now updated to rapid-mlx 0.16.3 (url/sha256 only; dependencies unchanged — pillow stays on the pillow formula, which satisfies the new <13 bound). CI is green on 8351f7f: https://github.com/Homebrew/homebrew-core/actions/runs/39043499668. Your earlier requested changes were addressed in the previous revision — could you take another look when you have a moment? Thanks!

@tko

tko commented Oct 17, 2026

Copy link
Copy Markdown

I think this needs bump to python@3.15 . mlx dependency was switched to python3.15 in https://github.com/Homebrew/homebrew-core/pull/318635/changes and with rapid-mlx using python3.14 it can't find the module: "ModuleNotFoundError: No module named 'mlx'"

@raullenchai raullenchai mentioned this pull request Oct 17, 2026
4 of 7 tasks
@raullenchai

Copy link
Copy Markdown
Contributor Author

Thanks, tko, for catching this. The current 0.15.7 formula is migrated to Python 3.15 in #319278. This 0.16.x PR will switch to Python 3.15 after pytorch and torchvision migrate (#319229).

Comment thread Formula/r/rapid-mlx.rb Resolved
@raullenchai

Copy link
Copy Markdown
Contributor Author

@daeho-ro Thanks for the review. Agreed on both points. The switch to depends_on "opencv" (OpenCV 5) is prepared:

  • removed the opencv-python resource, the three patch resources and the system "patch" calls
  • dropped libavif and openblas, which were only needed for that build
  • moved to python@3.15
  • relaxed mflux's opencv-python<5 pin and applied its one OpenCV 5 compatibility fix (the LineSegmentDetector output shape changed) with inreplace; the upstream fix is Support OpenCV 5 in Z-Image mlsd preprocessing mflux-community/mflux#901

I verified image generation and all of mflux's cv2 code paths with OpenCV 5.

The remaining blocker is that the opencv formula's Python bindings are still built for python@3.14 only, while mlx and pytorch are now on python@3.15. I'll push as soon as opencv migrates, which depends on the vtk migration in #319362.

Would you prefer that I wait for that, or would an interim revision be acceptable in the meantime?

@raullenchai raullenchai changed the title rapid-mlx 0.16.3 rapid-mlx 0.16.4 Oct 19, 2026
@raullenchai

Copy link
Copy Markdown
Contributor Author

@daeho-ro I've pushed an interim revision: rapid-mlx 0.16.4 on python@3.15. It keeps the bundled, FFmpeg-patched opencv-python resource from the earlier green builds, so users can move off 0.15.7 now that mlx, pytorch and torchvision are on python@3.15. 0.16.4 adds no new Python dependencies.

The depends_on "opencv" (OpenCV 5) revision is rebased onto 0.16.4 and ready. I'll push it as soon as opencv migrates to python@3.15, which is waiting on #319362.

Would you rather merge this interim revision once CI is green, or wait for the OpenCV 5 switch?

@raullenchai

Copy link
Copy Markdown
Contributor Author

@daeho-ro CI is green on all three macOS runners. I updated this to 0.16.4 on python@3.15, and the bundled opencv-python now builds against the formula numpy, since its pinned build requirements don't yet have a 3.15 entry. Could you take another look when you have a moment? Thanks!

@daeho-ro daeho-ro added the ready to merge PR can be merged once CI is green label Oct 26, 2026
Co-authored-by: Raullen <raullenstudio@raullenacstudio.attlocal.net>
@github-actions

Copy link
Copy Markdown
Contributor

🤖 An automated task has requested bottles to be published to this PR.

Caution

Please do not push to this PR branch before the bottle commits have been pushed, as this results in a state that is difficult to recover from. If you need to resolve a merge conflict, please use a merge commit. Do not force-push to this PR branch.

@github-actions github-actions Bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Oct 28, 2026
@BrewTestBot
BrewTestBot enabled auto-merge October 28, 2026 04:38
@BrewTestBot
BrewTestBot added this pull request to the merge queue Oct 28, 2026
Merged via the queue into Homebrew:main with commit cb8ae11 Oct 28, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. ffmpeg FFMPEG use is a significant feature of the PR or issue macos-only Formula depends on macOS missing network sandbox The formula does not define network sandbox settings python Python use is a significant feature of the PR or issue ready to merge PR can be merged once CI is green rust Rust use is a significant feature of the PR or issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants