Patch redis-py bug for Windows (#8386)

This commit is contained in:
mehrdadn
2020-05-12 08:41:45 -07:00
committed by GitHub
parent a3b95d4664
commit ac1ed293e3
3 changed files with 27 additions and 2 deletions
+4
View File
@@ -30,6 +30,10 @@ thirdparty_files = os.path.join(
os.path.abspath(os.path.dirname(__file__)), "thirdparty_files")
sys.path.insert(0, thirdparty_files)
if sys.platform == "win32":
import ray.compat # noqa: E402
ray.compat.patch_redis_empty_recv()
# Expose ray ABI symbols which may be dependent by other shared
# libraries such as _streaming.so. See BUILD.bazel:_raylet
python_shared_lib_suffix = ".so" if sys.platform != "win32" else ".pyd"