File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 28
28
29
29
./configure.sh
30
30
31
- bazelisk build :build_pip_pkg --copt=-fvisibility=hidden
32
- bazel-bin/build_pip_pkg artifacts
31
+ bazelisk build :build_pip_pkg --copt=-fvisibility=hidden --copt=-mmacosx-version-min=10.13 --linkopt=-mmacosx-version-min=10.13
32
+ bazel-bin/build_pip_pkg artifacts --plat-name macosx_10_13_x86_64
33
33
34
34
for f in artifacts/*.whl; do
35
35
delocate-wheel -w wheelhouse $f
Original file line number Diff line number Diff line change @@ -32,15 +32,8 @@ function abspath() {
32
32
}
33
33
34
34
function main() {
35
- while [[ ! -z " ${1} " ]]; do
36
- if [[ ${1} == " make" ]]; then
37
- echo " Using Makefile to build pip package."
38
- PIP_FILE_PREFIX=" "
39
- else
40
- DEST=${1}
41
- fi
42
- shift
43
- done
35
+ DEST=${1}
36
+ BUILD_FLAG=${@: 2}
44
37
45
38
if [[ -z ${DEST} ]]; then
46
39
echo " No destination dir provided"
@@ -72,7 +65,7 @@ function main() {
72
65
strip -x ${TMPDIR} /larq_compute_engine/mlir/* .so
73
66
74
67
echo $( date) : " === Building wheel"
75
- python setup.py bdist_wheel > /dev/null
68
+ python setup.py bdist_wheel ${BUILD_FLAG} > /dev/null
76
69
77
70
cp dist/* .whl " ${DEST} "
78
71
popd
You can’t perform that action at this time.
0 commit comments