From 59fc1b79d11fd62ed60af5ac4785981ffa1817b7 Mon Sep 17 00:00:00 2001 From: Didi Hoffmann <39629+ribalba@users.noreply.github.com> Date: Fri, 10 Jul 2026 12:54:46 +0200 Subject: [PATCH] Refactor xgboost dependencies for platform compatibility Updated xgboost-cpu and xgboost version specifications for better compatibility across platforms. --- requirements.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index c7142e9..3de868d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,9 +5,9 @@ pyarrow==24.0.0 scikit-learn==1.9.0 # Use xgboost-cpu on Linux or Windows x86_64 -xgboost-cpu==3.3.0; sys_platform == "linux" and platform_machine == "x86_64" -xgboost-cpu==3.2.0; sys_platform == "win32" and platform_machine == "x86_64" +xgboost-cpu==3.3.0; platform_machine == "x86_64" and (sys_platform == "linux" or sys_platform == "win32") # Use xgboost on all other platforms (e.g., macOS Intel or ARM, or non-x86_64) -xgboost==3.3.0; sys_platform == "darwin" -xgboost==3.2.0; platform_machine != "x86_64" +# PEP 508 markers have no unary "not", so this is the De Morgan negation of the marker above +# and must be kept exactly complementary to it. +xgboost==3.3.0; platform_machine != "x86_64" or (sys_platform != "linux" and sys_platform != "win32")