Make setup-dev.py more resilient (#6467)

* fix_tests

* link_tests
This commit is contained in:
Richard Liaw
2019-12-13 11:32:04 -08:00
committed by GitHub
parent 4ff6ca89f4
commit 3754effafc
+2 -1
View File
@@ -18,7 +18,8 @@ def do_link(package, force=False, local_path=""):
os.path.join(ray.__file__, "../{}".format(package)))
local_home = os.path.abspath(
os.path.join(__file__, local_path + "../{}".format(package)))
assert os.path.isdir(package_home), package_home
if not os.path.isdir(package_home):
print("{} does not exist. Continuing to link.".format(package_home))
assert os.path.isdir(local_home), local_home
if not force and not click.confirm(
"This will replace:\n {}\nwith a symlink to:\n {}".format(