From 17a6b9bbe7f53c87d4b1afaedf06287ea3a03ba0 Mon Sep 17 00:00:00 2001 From: chaokunyang Date: Mon, 30 Nov 2020 13:53:09 +0800 Subject: [PATCH] Fix not cp jars (#12456) --- python/setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/setup.py b/python/setup.py index 20b97ee9d..2c82ad1d9 100644 --- a/python/setup.py +++ b/python/setup.py @@ -58,7 +58,8 @@ ray_files = [ "ray/streaming/_streaming.so", ] -if BUILD_JAVA: +if BUILD_JAVA or os.path.exists( + os.path.join(ROOT_DIR, "ray/jars/ray_dist.jar")): ray_files.append("ray/jars/ray_dist.jar") # These are the directories where automatically generated Python protobuf