Skip to content

Commit

Permalink
Add packaging as an install dependency (llvm#2369)
Browse files Browse the repository at this point in the history
Needed by `torch_mlir._version`. Resolves llvm#2368.
  • Loading branch information
JackWolfard authored Aug 3, 2023
1 parent 22cb006 commit 48f4e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def build_extension(self, ext):
ext_modules=[
CMakeExtension("torch_mlir._mlir_libs._jit_ir_importer"),
] if not TORCH_MLIR_ENABLE_ONLY_MLIR_PYTHON_BINDINGS else [CMakeExtension("torch_mlir._mlir_libs._torchMlir")],
install_requires=["numpy", ] + (
install_requires=["numpy", "packaging"] + (
[f"torch=={torch.__version__}".split("+", 1)[0], ] if not TORCH_MLIR_ENABLE_ONLY_MLIR_PYTHON_BINDINGS else []),
zip_safe=False,
)

0 comments on commit 48f4e8f

Please sign in to comment.