mirror of
https://github.com/openai/whisper.git
synced 2025-03-30 14:28:27 +00:00
Try installing triton only if linux & x86_64 (#1051)
This commit is contained in:
parent
4b0d5e58d0
commit
924e1f8e06
5
setup.py
5
setup.py
@ -1,4 +1,5 @@
|
||||
import os
|
||||
import platform
|
||||
import sys
|
||||
|
||||
import pkg_resources
|
||||
@ -11,8 +12,8 @@ def read_version(fname="whisper/version.py"):
|
||||
|
||||
|
||||
requirements = []
|
||||
if sys.platform.startswith("linux"):
|
||||
triton_requirement = "triton>=2.0.0.dev20221202"
|
||||
if sys.platform.startswith("linux") and platform.machine() == "x86_64":
|
||||
triton_requirement = "triton==2.0.0"
|
||||
try:
|
||||
import re
|
||||
import subprocess
|
||||
|
Loading…
x
Reference in New Issue
Block a user