Skip to content

Dependencies: pin pymupdf 1.28.2 on Windows ARM64, the only release with a win_arm64 wheel - #16160

Merged
danielhanchen merged 2 commits into
mainfrom
deps-pin-pymupdf-win-arm64
Oct 30, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
deps-pin-pymupdf-win-arm64

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Problem

The windows-11-arm leg fails to install the Studio backend requirements (seen on the staging run for #16145):

pymupdf
  ...
  File "...\pymupdf_...\setup.py", line 1046, in build_mupdf_windows
  subprocess.CalledProcessError: Command 'cd "...\mupdf-1.28.5-source" && ...
error: metadata-generation-failed

On Windows ARM64 the requirements say pymupdf>=1.28.2, added with #10282. When that landed, 1.28.2 was the newest release and it ships a win_arm64 wheel. pymupdf 2.0 came out on 2026-10-19 with wheels for macOS arm64, manylinux x86_64 / aarch64 and win_amd64 only, so on Windows ARM64 >=1.28.2 now resolves to the 2.0 sdist and tries to build MuPDF from source. This is not only a CI problem: a Studio install or update on a Windows-on-ARM machine goes the same way. Every other platform is unaffected because it is pinned to pymupdf==1.27.2.3.

Fix

  • studio/backend/requirements/studio.txt, studio/backend/requirements/no-torch-runtime.txt and the studio extra in pyproject.toml pin pymupdf==1.28.2 on Windows ARM64, the only pymupdf release with a win_arm64 wheel. The comments now say why.
  • tests/studio/install/test_pymupdf_platform_pins.py:
    • For each of win_arm64, win_amd64, linux x86_64 / aarch64 and macOS arm64, every one of the three files must give pymupdf exactly one == pin, and the three must agree.
    • Windows ARM64 must stay on 1.28.2.
    • A lower bound alone (the shape that broke here) fails it, as does a drift between the files.

Verification

  • pip download "pymupdf==1.28.2" --platform win_arm64 --python-version 3.12 --only-binary=:all: --no-deps resolves pymupdf-1.28.2-cp310-abi3-win_arm64.whl.
  • New tests pass (6 passed). With main's requirement files restored they fail on the two win_arm64 cases.
  • The existing tests that read these requirement files show the same 21 failing IDs on main and on this branch in my local environment (test_dependency_pass_skips.py, which needs the CI install layout), so this change adds no failures.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T16:16:54.289789Z b39e7c6 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: b39e7c6d9d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 9448864 into main Oct 30, 2026
8 of 87 checks passed
@danielhanchen
danielhanchen deleted the deps-pin-pymupdf-win-arm64 branch October 30, 2026 16:23
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