Skip to content

WINDOWS: fix pip activate command - #23556

Merged
pcmoritz merged 2 commits into
ray-project:masterfrom
mattip:pip-task
Mar 30, 2022
Merged

pcmoritz merged 2 commits into
ray-project:masterfrom
mattip:pip-task

Conversation

@mattip

@mattip mattip commented Mar 29, 2022

Copy link
Copy Markdown
Contributor

Why are these changes needed?

Continuation of #22449

Fix pip activation so something like this will not crash

ray.init(runtime_env={"pip": ["toolz", "requests"]})

Also enable test that hit this code path.

Related issue number

Checks

@mattip

mattip commented Mar 29, 2022

Copy link
Copy Markdown
Contributor Author

test_pip_task, which hits the code path, passes. It seems neither #23461 (which made the timeout longer in test_metrics) nor #23462 (which made the timeout longer on test_ray_init) helped: both the tests are failing in this CI run. Neither are related to the runtime environment changes here.

@architkulkarni architkulkarni self-assigned this Mar 29, 2022
Comment thread python/ray/_private/runtime_env/pip.py Outdated
@@ -62,7 +62,10 @@ def get_virtualenv_python(cls, target_dir: str) -> str:
def get_virtualenv_activate_command(cls, target_dir: str) -> str:
virtualenv_path = cls.get_virtualenv_path(target_dir)
# TODO(SongGuyang): Support Windows

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get rid of the TODO comment?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@architkulkarni architkulkarni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good!

@mattip

mattip commented Mar 29, 2022

Copy link
Copy Markdown
Contributor Author

test_placement_group_5 is failing on linux like in other PR runs, everything else seems to pass? I don't know what is going on with the macos tests, they seem stuck

@pcmoritz could you take a look?

@pcmoritz
pcmoritz merged commit e58b784 into ray-project:master Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants