Skip to content

Commit

Permalink
[shortfin] Add extras_require for optional deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Sep 30, 2024
1 parent 72665fc commit 4c2f3ec
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions shortfin/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,27 @@ def populate_built_package(abs_dir):
[CMakeExtension("_shortfin_default.lib")]
+ ([CMakeExtension("_shortfin_tracy.lib")] if ENABLE_TRACY else [])
),
extras_require={
"testing": [
"pytest",
"requests",
],
"apps": [
"dataclasses-json",
"tokenizers",
],
"onnx": [
"onnx",
],
"torch": [
# Note that this pulls in `torch>=2.3.0`, which then pulls in all of CUDA.
"iree-turbine",
],
"server": [
"fastapi",
"uvicorn",
],
},
cmdclass={
"build": CustomBuild,
"build_ext": NoopBuildExtension,
Expand Down

0 comments on commit 4c2f3ec

Please sign in to comment.