[Core] [runtime env] Fix bug where None is added to pip dependencies when built from source (#16173)

This commit is contained in:
architkulkarni 2021-06-02 16:12:59 -07:00 committed by GitHub
parent e1da31f149
commit 46acac03ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,8 +48,10 @@ def setup(input_args):
assert conda_dict is not None
py_version = ".".join(map(str,
sys.version_info[:3])) # like 3.6.10
ray_pip = current_ray_pip_specifier()
extra_pip_dependencies = [ray_pip] if ray_pip else []
conda_dict = inject_dependencies(conda_dict, py_version,
[current_ray_pip_specifier()])
extra_pip_dependencies)
# Locking to avoid multiple processes installing concurrently
conda_hash = hashlib.sha1(
json.dumps(conda_dict,