|
| 1 | +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 2 | +# See https://llvm.org/LICENSE.txt for license information. |
| 3 | +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 4 | +# Copyright (c) 2025. |
| 5 | + |
| 6 | +[project] |
| 7 | +name = "mlir-python-bindings" |
| 8 | +version = "0.0.1" |
| 9 | +requires-python = ">=3.8,<=3.13" |
| 10 | +[project.urls] |
| 11 | +Homepage = "https://github.com/llvm/llvm-project" |
| 12 | + |
| 13 | +[build-system] |
| 14 | +requires = [ |
| 15 | + "scikit-build-core==0.10.7", |
| 16 | + "typing_extensions==4.12.2", |
| 17 | + "nanobind>=2.4, <3.0", |
| 18 | + "numpy>=1.19.5, <=2.1.2", |
| 19 | + "pybind11>=2.10.0, <=2.13.6", |
| 20 | + "PyYAML>=5.4.0, <=6.0.1", |
| 21 | + 'ml_dtypes>=0.1.0, <=0.6.0; python_version<"3.13"', |
| 22 | + 'ml_dtypes>=0.5.0, <=0.6.0; python_version>="3.13"' |
| 23 | +] |
| 24 | +build-backend = "scikit_build_core.build" |
| 25 | + |
| 26 | +[tool.scikit-build] |
| 27 | +minimum-version = "0.10" |
| 28 | +build-dir = "../../build" |
| 29 | +cmake.source-dir = "../../llvm" |
| 30 | +wheel.exclude = ["bin", "include", "lib", "src", "share"] |
| 31 | +build.targets = ["MLIRPythonModules"] |
| 32 | + |
| 33 | +[tool.scikit-build.cmake.define] |
| 34 | +CMAKE_C_COMPILER_LAUNCHER = { env = "CMAKE_C_COMPILER_LAUNCHER", default = "" } |
| 35 | +CMAKE_CXX_COMPILER_LAUNCHER = { env = "CMAKE_CXX_COMPILER_LAUNCHER", default = "" } |
| 36 | +CMAKE_CXX_VISIBILITY_PRESET = "hidden" |
| 37 | +CMAKE_VERBOSE_MAKEFILE = "ON" |
| 38 | +LLVM_ENABLE_PROJECTS = "mlir" |
| 39 | +MLIR_ENABLE_BINDINGS_PYTHON = "ON" |
| 40 | +MLIR_BINDINGS_PYTHON_INSTALL_PREFIX = "mlir" |
0 commit comments