Skip to content

Commit

Permalink
packaging: add ninja to dependencies (#654)
Browse files Browse the repository at this point in the history
otherwise aot compilation will be too slow.
  • Loading branch information
yzh119 authored Dec 12, 2024
1 parent 8e3d258 commit e07c4a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion custom_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@


def _get_requires_for_build():
return ["torch"] if os.environ.get("FLASHINFER_ENABLE_AOT", "0") == "1" else []
return (
["torch", "ninja"]
if os.environ.get("FLASHINFER_ENABLE_AOT", "0") == "1"
else ["ninja"]
)


def get_requires_for_build_wheel(config_settings=None):
Expand Down

0 comments on commit e07c4a3

Please sign in to comment.