Revert "Revert "[Core] minor refactor for usability of runtime_env (#15965)" (#15985)" (#15987)

This commit is contained in:
Ian Rodney 2021-05-21 14:57:44 -07:00 committed by Dmitri Gekhtman
parent 17159c0219
commit c7092d5a19
2 changed files with 11 additions and 1 deletions

View file

@ -95,7 +95,10 @@ done
# hack, we should use auditwheel instead. # hack, we should use auditwheel instead.
for path in .whl/*.whl; do for path in .whl/*.whl; do
if [ -f "${path}" ]; then if [ -f "${path}" ]; then
mv "${path}" "${path//linux/manylinux2014}" out="${path//-linux/-manylinux2014}"
if [ "$out" != "$path" ]; then
mv "${path}" "${out}"
fi
fi fi
done done

View file

@ -117,6 +117,13 @@ class RuntimeEnvDict:
self._dict["working_dir"] = runtime_env_json["working_dir"] self._dict["working_dir"] = runtime_env_json["working_dir"]
else: else:
self._dict["working_dir"] = None self._dict["working_dir"] = None
if "uris" in runtime_env_json:
self._dict["uris"] = runtime_env_json["uris"]
if "_ray_release" in runtime_env_json:
self._dict["_ray_release"] = runtime_env_json["_ray_release"]
# TODO(ekl) we should have better schema validation here. # TODO(ekl) we should have better schema validation here.
# TODO(ekl) support py_modules # TODO(ekl) support py_modules
# TODO(architkulkarni) support env_vars, docker # TODO(architkulkarni) support env_vars, docker