Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup_base/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ runs:
fi

- name: "Install Python"
uses: actions/setup-python@v4
uses: actions/setup-python@v6.0.0
if: ${{ startsWith(inputs.os, 'macos') || startsWith(inputs.os, 'windows') || startsWith(inputs.os, 'ubuntu') }}
with:
python-version: ${{ inputs.python-version }}
Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/build_mlir_python_bindings_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ jobs:
host-arch: ${{ matrix.host-arch }}
target-arch: ${{ matrix.target-arch }}
runs-on: ${{ matrix.runs-on }}
python-version: ${{ matrix.target-arch == 'wasm32' && '3.12' || '3.15.0-alpha.2' }}

- name: "Pip download MLIR from releases"
if: ${{ !inputs.workflow_call }}
Expand Down Expand Up @@ -225,6 +226,17 @@ jobs:
$python3_command -m cibuildwheel "$PWD/projects/mlir-python-bindings" --output-dir wheelhouse
fi

- name: "Build mlir-python-bindings pre-release"
if: matrix.target-arch != 'wasm32'
run: |

echo "build using ${{ matrix.python-version }}"
export LLVM_DIR="$PWD/llvm-install/lib/cmake/llvm"
export MLIR_DIR="$PWD/llvm-install/lib/cmake/mlir"
export Clang_DIR="$PWD/llvm-install/lib/cmake/clang"
export CMAKE_PREFIX_PATH="$PWD/llvm-install"
$python3_command -m pip wheel "$PWD/projects/mlir-python-bindings" --wheel-dir wheelhouse

- name: "Build standalone-python-bindings"
if: matrix.target-arch != 'wasm32'
run: |
Expand Down Expand Up @@ -273,7 +285,8 @@ jobs:
]
python-version: [
"3.10", "3.11", "3.12",
"3.13", "3.14", "3.14t"
"3.13", "3.14", "3.14t",
"3.15.0-alpha.2"
]
include: [
{runs-on: "ubuntu-22.04", name: "ubuntu_x86_64", os: "ubuntu"},
Expand Down Expand Up @@ -331,10 +344,12 @@ jobs:
name: mlir_python_bindings_${{ matrix.name }}_artifact
path: wheelhouse

- name: "Install mlir-python-bindings"
run: python -m pip install mlir-python-bindings numpy --pre -f wheelhouse

- name: "Test mlir-python-bindings"
run: |

pip install mlir-python-bindings numpy -v -f wheelhouse
cd third_party/llvm-project/mlir/test/python/dialects
for f in *.py; do
if [[ "$f" == "python_test.py" ]]; then
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build_test_release_eudsl_python_extras.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ jobs:
]
python-version: [
"3.10", "3.11", "3.12",
"3.13", "3.14", "3.14t"
"3.13", "3.14", "3.14t",
"3.15.0-alpha.2"
]
include: [
{runs-on: "ubuntu-22.04", name: "ubuntu_x86_64", os: "ubuntu"},
Expand Down
8 changes: 0 additions & 8 deletions projects/mlir-python-bindings/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
name = "mlir-python-bindings"
dynamic = ["version"]
requires-python = ">=3.8"
dependencies = [
"numpy>=1.19.5",
"PyYAML>=5.4.0, <=6.0.1",
"ml_dtypes>=0.1.0, <=0.6.0; python_version<'3.13'",
"ml_dtypes>=0.5.0, <=0.6.0; python_version>='3.13'",
]

[project.urls]
Homepage = "https://github.com/llvm/llvm-project"
Expand All @@ -25,8 +19,6 @@ requires = [
"scikit-build-core>=0.10.7",
"typing_extensions>=4.12.2",
"nanobind>=2.9, <3.0",
"pybind11>=2.10.0, <=2.13.6",
"numpy>=1.19.5, <=2.3.0",
]
build-backend = "scikit_build_core.build"

Expand Down
Loading