From b3121185e098b7c3ae455f2f38c4d8728d83c130 Mon Sep 17 00:00:00 2001 From: Balaji Veeramani Date: Wed, 9 Aug 2023 01:18:02 -0500 Subject: [PATCH] [CI] Add `--extras` option to `setup-dev` (#38247) You might want to symlink subpackages that aren't symlinked by default in setup-dev. This PR adds an --extras option for this use case. Signed-off-by: Balaji Veeramani --- python/ray/setup-dev.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/python/ray/setup-dev.py b/python/ray/setup-dev.py index ce4daf0d1e05e..fdeff33569e8d 100755 --- a/python/ray/setup-dev.py +++ b/python/ray/setup-dev.py @@ -91,6 +91,13 @@ def do_link(package, force=False, skip_list=None, local_path=None): help="List of folders to skip linking to facilitate workspace dev", required=False, ) + parser.add_argument( + "--extras", + "-e", + nargs="*", + help="List of extra folders to link to facilitate workspace dev", + required=False, + ) args = parser.parse_args() if not args.yes: @@ -123,6 +130,10 @@ def do_link(package, force=False, skip_list=None, local_path=None): skip_list=args.skip, local_path="../../../dashboard", ) + + for package in args.extras: + do_link(package, force=args.yes, skip_list=args.skip) + print( "Created links.\n\nIf you run into issues initializing Ray, please " "ensure that your local repo and the installed Ray are in sync "