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

minor: update pypi tag #2463

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Changes from all commits
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
11 changes: 11 additions & 0 deletions sgl-kernel/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ def rename_wheel():
shutil.rmtree(tmp_dir)


def update_wheel_platform_tag():
wheel_dir = Path("dist")
old_wheel = next(wheel_dir.glob("*.whl"))
new_wheel = wheel_dir / old_wheel.name.replace(
"linux_x86_64", "manylinux2014_x86_64"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ByronHsu I believe we should do the same thing for the router wheel as well. Today I noticed that pip doesn't recognize the wheel arch (linux_x86_64) for mariner and tries to build from source. So I had to install it manually.

)
old_wheel.rename(new_wheel)


setup(
name="sgl-kernel",
version=get_version(),
Expand Down Expand Up @@ -78,3 +87,5 @@ def rename_wheel():
cmdclass={"build_ext": BuildExtension},
install_requires=["torch"],
)

update_wheel_platform_tag()
Loading