Skip to content

Commit

Permalink
update setup for sgl-kernel (#3214)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyncs authored Jan 30, 2025
1 parent c38b5fb commit 468d23c
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions sgl-kernel/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import multiprocessing
import os
import sys
from pathlib import Path

import torch
Expand All @@ -9,14 +10,8 @@
root = Path(__file__).parent.resolve()


def _update_wheel_platform_tag():
wheel_dir = Path("dist")
if wheel_dir.exists() and wheel_dir.is_dir():
old_wheel = next(wheel_dir.glob("*.whl"))
new_wheel = wheel_dir / old_wheel.name.replace(
"linux_x86_64", "manylinux2014_x86_64"
)
old_wheel.rename(new_wheel)
if "bdist_wheel" in sys.argv and "--plat-name" not in sys.argv:
sys.argv.extend(["--plat-name", "manylinux2014_x86_64"])


def _get_cuda_version():
Expand Down Expand Up @@ -162,5 +157,3 @@ def _get_version():
},
options={"bdist_wheel": {"py_limited_api": "cp39"}},
)

_update_wheel_platform_tag()

0 comments on commit 468d23c

Please sign in to comment.