Skip to content
Merged
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
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
inputs:
USE_LOCAL_VERSION:
description: 'use local version for wheel'
type: number
type: string
default: 1
BUNDLE_MLIR_PYTHON_BINDINGS:
description: 'bundle mlir python bindings'
type: number
type: string
default: 1
release:
types:
Expand Down Expand Up @@ -94,13 +94,15 @@ jobs:
- name: Build wheel
shell: bash
run: |

pip install mlir-python-bindings==$BINDINGS_VERSION -t tmp
cp -R tmp/mlir $PWD

if [ "$BUNDLE_MLIR_PYTHON_BINDINGS" == "1" ]; then
pip install mlir-python-bindings==$BINDINGS_VERSION -t tmp
cp -R tmp/mlir $PWD
fi
pip wheel . -v -w wheelhouse

- name: auditwheel
if: startsWith(matrix.os, 'ubuntu')
if: (startsWith(matrix.os, 'ubuntu') && env.BUNDLE_MLIR_PYTHON_BINDINGS == '1')
shell: bash
run: |

Expand Down
4 changes: 2 additions & 2 deletions mlir/extras/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def enable_debug():
def shlib_ext():
if platform.system() == "Darwin":
shlib_ext = "dylib"
elif platform.system() == "Linux":
elif platform.system() in {"Linux", "Emscripten"}:
shlib_ext = "so"
elif platform.system() == "Windows":
shlib_ext = "lib"
Expand All @@ -95,7 +95,7 @@ def shlib_ext():


def shlib_prefix():
if platform.system() in {"Darwin", "Linux"}:
if platform.system() in {"Darwin", "Linux", "Emscripten"}:
shlib_pref = "lib"
elif platform.system() == "Windows":
shlib_pref = ""
Expand Down
Loading