diff --git a/python/setup.py b/python/setup.py index 00bf5c26e96a7..0e018e234ffe4 100644 --- a/python/setup.py +++ b/python/setup.py @@ -267,12 +267,11 @@ def get_packages(self): "pyyaml", ] -if platform.system() == "Darwin" and platform.machine() == "arm64": +if platform.system() == "Windows" or (platform.system() == "Darwin" + and platform.machine() == "arm64"): # TODO (Alex): `hiredis` doesn't have prebuilt M1 mac wheels yet. We can # remove this, either when they add support, we remove redis, or we vendor # redis/hiredis ourselves. - setup_spec.install_requires.append("redis >= 3.5.0") -elif platform.system() == "Windows": # TODO (Alex): Ray is not compatible with redis >= 4.0.0. We ened to either # investigate why, or remove the redis dependency. setup_spec.install_requires.append("redis >= 3.5.0, < 4.0")