File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 5
5
inputs :
6
6
USE_LOCAL_VERSION :
7
7
description : ' use local version for wheel'
8
- type : number
8
+ type : string
9
9
default : 1
10
10
BUNDLE_MLIR_PYTHON_BINDINGS :
11
11
description : ' bundle mlir python bindings'
12
- type : number
12
+ type : string
13
13
default : 1
14
14
release :
15
15
types :
@@ -94,13 +94,15 @@ jobs:
94
94
- name : Build wheel
95
95
shell : bash
96
96
run : |
97
-
98
- pip install mlir-python-bindings==$BINDINGS_VERSION -t tmp
99
- cp -R tmp/mlir $PWD
97
+
98
+ if [ "$BUNDLE_MLIR_PYTHON_BINDINGS" == "1" ]; then
99
+ pip install mlir-python-bindings==$BINDINGS_VERSION -t tmp
100
+ cp -R tmp/mlir $PWD
101
+ fi
100
102
pip wheel . -v -w wheelhouse
101
103
102
104
- name : auditwheel
103
- if : startsWith(matrix.os, 'ubuntu')
105
+ if : ( startsWith(matrix.os, 'ubuntu') && env.BUNDLE_MLIR_PYTHON_BINDINGS == '1 ')
104
106
shell : bash
105
107
run : |
106
108
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ def enable_debug():
84
84
def shlib_ext ():
85
85
if platform .system () == "Darwin" :
86
86
shlib_ext = "dylib"
87
- elif platform .system () == "Linux" :
87
+ elif platform .system () in { "Linux" , "Emscripten" } :
88
88
shlib_ext = "so"
89
89
elif platform .system () == "Windows" :
90
90
shlib_ext = "lib"
@@ -95,7 +95,7 @@ def shlib_ext():
95
95
96
96
97
97
def shlib_prefix ():
98
- if platform .system () in {"Darwin" , "Linux" }:
98
+ if platform .system () in {"Darwin" , "Linux" , "Emscripten" }:
99
99
shlib_pref = "lib"
100
100
elif platform .system () == "Windows" :
101
101
shlib_pref = ""
You can’t perform that action at this time.
0 commit comments