Skip to content

Commit

Permalink
fix package name bug for nightly (#155)
Browse files Browse the repository at this point in the history
Co-authored-by: dhuangnm <[email protected]>
  • Loading branch information
dhuangnm and dhuangnm authored Sep 10, 2024
1 parent 108afb0 commit 051650d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
)
version_info = extract_version_info(package_path)

if version_info.is_release:
if version_info.build_type == "release":
package_name = "llmcompressor"
elif version_info.is_dev:
elif version_info.build_type == "dev":
package_name = "llmcompressor-dev"
elif version_info.is_nightly:
elif version_info.build_type == "nightly":
package_name = "llmcompressor-nightly"
else:
raise ValueError(f"Unsupported build type {version_info.build_type}")


setup(
name="llmcompressor",
name=package_name,
version=version_info.version,
author="Neuralmagic, Inc.",
author_email="[email protected]",
Expand Down

0 comments on commit 051650d

Please sign in to comment.