Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove torchao_nightly package #661

Merged
merged 3 commits into from
Aug 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ def read_version(file_path="version.txt"):
with open(file_path, "r") as file:
return file.readline().strip()

# Determine the package name based on the presence of an environment variable
package_name = "torchao-nightly" if os.environ.get("TORCHAO_NIGHTLY") else "torchao"

# Use Git commit ID if VERSION_SUFFIX is not set
version_suffix = os.getenv("VERSION_SUFFIX")
Expand All @@ -39,7 +37,7 @@ def read_version(file_path="version.txt"):


# Version is year.month.date if using nightlies
version = current_date if package_name == "torchao-nightly" else read_version()
version = current_date if os.environ.get("TORCHAO_NIGHTLY") else read_version()

import torch

Expand Down Expand Up @@ -124,7 +122,7 @@ def get_extensions():
return ext_modules

setup(
name=package_name,
name="torchao",
version=version+version_suffix,
packages=find_packages(),
include_package_data=True,
Expand Down
Loading