Skip to content

Commit 74e310c

Browse files
committed
Remove macOS Intel support and update Ubuntu testing
- PyTorch officially discontinued macOS Intel (x86_64) support after version 2.2.2 - Remove macOS Intel from CI testing matrix (was causing wheel availability errors) - Constrain macOS Intel to PyTorch 2.2.x in pyproject.toml for legacy support - Replace Ubuntu 20.04 with Ubuntu 24.04 for more current testing - Update test summary to reflect supported platforms - Users on macOS Intel should use PyTorch 2.2.2 or upgrade to ARM64 hardware References: - pytorch/pytorch#114602 - https://discuss.pytorch.org/t/pytorch-2-6-0-installation-on-2019-macbook-intel/218576
1 parent 60acb03 commit 74e310c

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

.github/workflows/cross-platform-test.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,8 @@ jobs:
2424
python-version: "3.12"
2525
platform-name: "Windows-py312"
2626

27-
# macOS x86_64 (Intel)
28-
- os: macos-13 # Intel-based
29-
python-version: "3.10"
30-
platform-name: "macOS-Intel-py310"
31-
- os: macos-13
32-
python-version: "3.11"
33-
platform-name: "macOS-Intel-py311"
27+
# NOTE: macOS Intel (x86_64) REMOVED - PyTorch discontinued support after 2.2.2
28+
# Users on macOS Intel should use PyTorch 2.2.2 or switch to ARM64 hardware
3429

3530
# macOS ARM64 (Apple Silicon)
3631
- os: macos-14 # Apple Silicon
@@ -44,9 +39,9 @@ jobs:
4439
platform-name: "macOS-ARM64-py312"
4540

4641
# Linux x86_64
47-
- os: ubuntu-20.04
42+
- os: ubuntu-24.04
4843
python-version: "3.10"
49-
platform-name: "Linux-py310-ubuntu20"
44+
platform-name: "Linux-py310-ubuntu24"
5045
- os: ubuntu-22.04
5146
python-version: "3.11"
5247
platform-name: "Linux-py311-ubuntu22"
@@ -318,12 +313,14 @@ jobs:
318313
echo "🎉 SUCCESS: All platforms passed!"
319314
echo ""
320315
echo "✅ Windows (Python 3.10, 3.11, 3.12)"
321-
echo "✅ macOS Intel (Python 3.10, 3.11)"
322316
echo "✅ macOS Apple Silicon (Python 3.10, 3.11, 3.12)"
323317
echo "✅ Linux Ubuntu (Python 3.10, 3.11, 3.12)"
324318
echo ""
325-
echo "Your bplusplus package is compatible across all platforms!"
326-
echo "Users can safely install on Windows, macOS, and Linux."
319+
echo "ℹ️ Note: macOS Intel (x86_64) excluded - PyTorch discontinued support"
320+
echo " macOS Intel users should use PyTorch 2.2.2 or upgrade to ARM64 hardware"
321+
echo ""
322+
echo "Your bplusplus package is compatible across all supported platforms!"
323+
echo "Users can safely install on Windows, macOS ARM64, and Linux."
327324
else
328325
echo "❌ FAILURE: Some platform tests failed"
329326
echo ""

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ pillow = [
2323
# Linux - most flexible
2424
{version = ">=10.0.0,<12.0.0", markers = "sys_platform == 'linux'"}
2525
]
26-
# PyTorch with platform-specific compatibility to avoid wheel availability issues
26+
# PyTorch with platform-specific compatibility to handle discontinued macOS Intel support
2727
torch = [
2828
# Windows - stable version range
2929
{version = ">=2.0.0,<2.8.0", markers = "sys_platform == 'win32'"},
30-
# macOS Intel - more conservative range due to wheel availability
31-
{version = ">=2.0.0,<2.7.0", markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'"},
32-
# macOS ARM64 - broader range, better wheel support
30+
# macOS Intel - DISCONTINUED after PyTorch 2.2.2, use last supported version
31+
{version = ">=2.2.0,<2.3.0", markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'"},
32+
# macOS ARM64 - full support, broader range
3333
{version = ">=2.0.0,<2.8.0", markers = "sys_platform == 'darwin' and platform_machine == 'arm64'"},
3434
# Linux - most flexible, best wheel support
3535
{version = ">=2.0.0,<2.8.0", markers = "sys_platform == 'linux'"}

0 commit comments

Comments
 (0)