Skip to content

Commit

Permalink
[CI] Add --extras option to setup-dev (ray-project#38247)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bveeramani committed Aug 9, 2023
1 parent 8a21135 commit b312118
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python/ray/setup-dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 "
Expand Down

0 comments on commit b312118

Please sign in to comment.