Unverified Commit 08f93e74 authored by Nikolai Shcheglov's avatar Nikolai Shcheglov Committed by GitHub
Browse files

Make shutil rename in python_only_dev (#10233)


Signed-off-by: default avatarshcheglovnd <shcheglovnd@avride.ai>
parent 9d5b4e4d
...@@ -69,7 +69,8 @@ if not args.quit_dev: ...@@ -69,7 +69,8 @@ if not args.quit_dev:
current_vllm_path = os.path.join(cwd, "vllm") current_vllm_path = os.path.join(cwd, "vllm")
print(f"Renaming {pre_built_vllm_path} to {tmp_path} for backup") print(f"Renaming {pre_built_vllm_path} to {tmp_path} for backup")
os.rename(pre_built_vllm_path, tmp_path) shutil.copytree(pre_built_vllm_path, tmp_path)
shutil.rmtree(pre_built_vllm_path)
print(f"Linking {current_vllm_path} to {pre_built_vllm_path}") print(f"Linking {current_vllm_path} to {pre_built_vllm_path}")
os.symlink(current_vllm_path, pre_built_vllm_path) os.symlink(current_vllm_path, pre_built_vllm_path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment