mirror of
https://github.com/wassname/ray.git
synced 2026-07-09 00:47:28 +08:00
Fix WSL patch (it doesn't fall under "win32") (#9195)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import os
|
||||
import logging
|
||||
from os.path import dirname
|
||||
import platform
|
||||
import sys
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -36,9 +37,13 @@ sys.path.insert(0, thirdparty_files)
|
||||
|
||||
if sys.platform == "win32":
|
||||
import ray.compat # noqa: E402
|
||||
ray.compat.patch_psutil()
|
||||
ray.compat.patch_redis_empty_recv()
|
||||
|
||||
if (platform.system() == "Linux"
|
||||
and "Microsoft".lower() in platform.release().lower()):
|
||||
import ray.compat # noqa: E402
|
||||
ray.compat.patch_psutil()
|
||||
|
||||
# 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"
|
||||
|
||||
Reference in New Issue
Block a user