Skip to content

Commit

Permalink
bugfix: Fix FLASHINFER_BUILD_VERSION in nightly build (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
ur4t authored Dec 13, 2024
1 parent 16549dc commit 56f8eca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@


def get_version():
build_version = os.environ.get("FLASHINFER_BUILD_VERSION")
if build_version is not None:
return build_version
package_version = (root / "version.txt").read_text().strip()
local_version = os.getenv("FLASHINFER_LOCAL_VERSION")
local_version = os.environ.get("FLASHINFER_LOCAL_VERSION")
if local_version is None:
return package_version
return f"{package_version}+{local_version}"
Expand Down

0 comments on commit 56f8eca

Please sign in to comment.