Commit e005bce5 authored by zhuwenwen's avatar zhuwenwen
Browse files

update setup.py

parent 6c0a30bc
......@@ -524,7 +524,7 @@ def get_sha(root: Union[str, Path]) -> str:
def get_version_add(sha: Optional[str] = None) -> str:
command = "git config --global --add safe.directory "+pwd
result = subprocess.run(command, shell=True, capture_output=False, text=True)
subprocess.run(command, shell=True, capture_output=False, text=True)
vllm_root = os.path.dirname(os.path.abspath(__file__))
add_version_path = os.path.join(os.path.join(vllm_root, "vllm"), "version.py")
major, minor, _ = torch.__version__.split('.')
......@@ -551,8 +551,8 @@ def get_version_add(sha: Optional[str] = None) -> str:
new_version_content = f"""
try:
__version__ = "0.10.2.rc1"
__version_tuple__ = (0, 10, 2, rc1)
__hcu_version__ = f'0.10.1.1+{version}'
__version_tuple__ = (0, 10, 2, "rc1")
__hcu_version__ = f'0.10.2.rc1+{version}'
from vllm.version import __version__, __version_tuple__, __hcu_version__
except Exception as e:
......
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