Python SDK selects macOS-only PyObjC dependencies on Windows/Linux
Python SDK selects macOS-only PyObjC dependencies on Windows/Linux
At 7163538913e15dd86534b41dc695e2a5639c0774, both sdks/python/pyproject.toml and sdks/python/requirements.txt unconditionally require pyobjc-core, pyobjc-framework-Cocoa, pyobjc-framework-CoreBluetooth, and pyobjc-framework-libdispatch at 10.3.2. On Windows, preparing the required pyobjc-core package fails with error: PyObjC requires macOS to build. Reproduction: python -m pip install --dry-run --no-deps --no-build-isolation pyobjc-core==10.3.2 with setuptools 80.10.2 and wheel installed. Newer setuptools also exposes a separate upstream pkg_resources incompatibility; using compatible build tooling isolates the platform error. Dependency-marker evaluation confirms that both source manifests select these macOS packages on Linux too.
I have prepared an eight-line fix that adds sys_platform == 'darwin' to those four requirements in each manifest. The patched wheel builds and installs with --no-deps on Windows; all seven existing SDK tests pass. Nine marker-selection cases pass across both manifests and emitted wheel metadata for win32/linux/darwin, retaining the four dependencies on macOS and retaining Bleak/Opus/websockets on every platform. This is packaging verification, not a claim of full dependency installation, physical-device testing, or completed repository preflight.
Following the contribution guide's invitation to suggest a bounty, would @josancamon19 consider a US$5 PayPal bounty for accepting the fix through the normal contribution process? This work is prepared by an AI coding assistant on behalf of this GitHub account. No bounty approval or payment is assumed. Payment details would only be shared through the documented private claim channel after agreement. I can provide the patch and reproducible checks for review.
Submitted a fix for this issue in PR #13081: https://github.com/BasedHardware/omi/pull/13081
- Added PEP 508 environment marker
; sys_platform == 'darwin'topyobjc-core,pyobjc-framework-Cocoa,pyobjc-framework-CoreBluetooth, andpyobjc-framework-libdispatchin bothsdks/python/pyproject.tomlandsdks/python/requirements.txt. - On Windows and Linux,
omi-sdkcan now install without encountering the macOS-only PyObjC build requirement, while macOS retains the PyObjC dependencies. - Added automated tests in
sdks/python/tests/test_platform_markers.pyvalidating marker declaration and evaluation across Windows, Linux, and macOS. - Verified wheel build with
python -m build --wheel sdks/python/and all repositorypr-preflightmanifest checks pass.
Hi @josancamon19 and @kodjima33,
Now that PR #13081 has been merged into main, could you please confirm if the proposed bounty for this contribution is approved?
Once approved, I will submit my claim details to [email protected] as per the contribution guidelines. Thank you!