mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 21:38:18 +08:00
Fix .exe file extensions (#9197)
Co-authored-by: Mehrdad <noreply@github.com>
This commit is contained in:
@@ -23,6 +23,8 @@ resource = None
|
||||
if sys.platform != "win32":
|
||||
import resource
|
||||
|
||||
EXE_SUFFIX = ".exe" if sys.platform == "win32" else ""
|
||||
|
||||
# True if processes are run in the valgrind profiler.
|
||||
RUN_RAYLET_PROFILER = False
|
||||
RUN_PLASMA_STORE_PROFILER = False
|
||||
@@ -31,7 +33,7 @@ RUN_PLASMA_STORE_PROFILER = False
|
||||
RAY_HOME = os.path.join(os.path.dirname(__file__), "../..")
|
||||
REDIS_EXECUTABLE = os.path.join(
|
||||
os.path.abspath(os.path.dirname(__file__)),
|
||||
"core/src/ray/thirdparty/redis/src/redis-server")
|
||||
"core/src/ray/thirdparty/redis/src/redis-server" + EXE_SUFFIX)
|
||||
REDIS_MODULE = os.path.join(
|
||||
os.path.abspath(os.path.dirname(__file__)),
|
||||
"core/src/ray/gcs/redis_module/libray_redis_module.so")
|
||||
@@ -40,7 +42,7 @@ REDIS_MODULE = os.path.join(
|
||||
# credis will be enabled if the environment variable RAY_USE_NEW_GCS is set.
|
||||
CREDIS_EXECUTABLE = os.path.join(
|
||||
os.path.abspath(os.path.dirname(__file__)),
|
||||
"core/src/credis/redis/src/redis-server")
|
||||
"core/src/credis/redis/src/redis-server" + EXE_SUFFIX)
|
||||
CREDIS_MASTER_MODULE = os.path.join(
|
||||
os.path.abspath(os.path.dirname(__file__)),
|
||||
"core/src/credis/build/src/libmaster.so")
|
||||
@@ -51,13 +53,15 @@ CREDIS_MEMBER_MODULE = os.path.join(
|
||||
# Location of the plasma object store executable.
|
||||
PLASMA_STORE_EXECUTABLE = os.path.join(
|
||||
os.path.abspath(os.path.dirname(__file__)),
|
||||
"core/src/plasma/plasma_store_server")
|
||||
"core/src/plasma/plasma_store_server" + EXE_SUFFIX)
|
||||
|
||||
# Location of the raylet executables.
|
||||
RAYLET_EXECUTABLE = os.path.join(
|
||||
os.path.abspath(os.path.dirname(__file__)), "core/src/ray/raylet/raylet")
|
||||
os.path.abspath(os.path.dirname(__file__)),
|
||||
"core/src/ray/raylet/raylet" + EXE_SUFFIX)
|
||||
GCS_SERVER_EXECUTABLE = os.path.join(
|
||||
os.path.abspath(os.path.dirname(__file__)), "core/src/ray/gcs/gcs_server")
|
||||
os.path.abspath(os.path.dirname(__file__)),
|
||||
"core/src/ray/gcs/gcs_server" + EXE_SUFFIX)
|
||||
|
||||
DEFAULT_JAVA_WORKER_CLASSPATH = [
|
||||
os.path.join(
|
||||
|
||||
@@ -9,6 +9,7 @@ import time
|
||||
import socket
|
||||
|
||||
import ray
|
||||
import ray.services
|
||||
|
||||
import psutil # We must import psutil after ray because we bundle it with ray.
|
||||
|
||||
@@ -87,7 +88,7 @@ def wait_for_children_of_pid_to_exit(pid, timeout=20):
|
||||
|
||||
def kill_process_by_name(name, SIGKILL=False):
|
||||
for p in psutil.process_iter(attrs=["name"]):
|
||||
if p.info["name"] == name:
|
||||
if p.info["name"] == name + ray.services.EXE_SUFFIX:
|
||||
if SIGKILL:
|
||||
p.kill()
|
||||
else:
|
||||
|
||||
+2
-2
@@ -22,7 +22,7 @@ pyd_suffix = ".pyd" if sys.platform == "win32" else ".so"
|
||||
|
||||
# NOTE: The lists below must be kept in sync with ray/BUILD.bazel.
|
||||
ray_files = [
|
||||
"ray/core/src/ray/thirdparty/redis/src/redis-server",
|
||||
"ray/core/src/ray/thirdparty/redis/src/redis-server" + exe_suffix,
|
||||
"ray/core/src/ray/gcs/redis_module/libray_redis_module.so",
|
||||
"ray/core/src/plasma/plasma_store_server" + exe_suffix,
|
||||
"ray/_raylet" + pyd_suffix,
|
||||
@@ -76,7 +76,7 @@ if "RAY_USE_NEW_GCS" in os.environ and os.environ["RAY_USE_NEW_GCS"] == "on":
|
||||
ray_files += [
|
||||
"ray/core/src/credis/build/src/libmember.so",
|
||||
"ray/core/src/credis/build/src/libmaster.so",
|
||||
"ray/core/src/credis/redis/src/redis-server"
|
||||
"ray/core/src/credis/redis/src/redis-server" + exe_suffix,
|
||||
]
|
||||
|
||||
extras = {
|
||||
|
||||
Reference in New Issue
Block a user