From a7fd81084213977eb8ae2bd72c102c1c7042eb18 Mon Sep 17 00:00:00 2001 From: Liangsheng Yin Date: Mon, 5 Jan 2026 11:17:20 +0800 Subject: [PATCH] Allow editable install without `.git` with add fallback version in `pyproject.toml` (#16435) --- python/pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/pyproject.toml b/python/pyproject.toml index b4d16069a..a85f9405b 100755 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -172,6 +172,8 @@ exclude = [ root = ".." version_file = "sglang/_version.py" git_describe_command = ["git", "describe", "--tags", "--long", "--match", "v*"] +# Allow editable installs even when .git metadata is not available. +fallback_version = "0.0.0.dev0" [tool.codespell] ignore-words-list = "ans, als, hel, boostrap, childs, te, vas, hsa, ment"