Skip to content

Commit b55d947

Browse files
authored
Build wheels for macOS 10.13 (#233)
1 parent a477013 commit b55d947

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
2929
./configure.sh
3030
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
3333
3434
for f in artifacts/*.whl; do
3535
delocate-wheel -w wheelhouse $f

build_pip_pkg.sh

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,8 @@ function abspath() {
3232
}
3333

3434
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}
4437

4538
if [[ -z ${DEST} ]]; then
4639
echo "No destination dir provided"
@@ -72,7 +65,7 @@ function main() {
7265
strip -x ${TMPDIR}/larq_compute_engine/mlir/*.so
7366

7467
echo $(date) : "=== Building wheel"
75-
python setup.py bdist_wheel > /dev/null
68+
python setup.py bdist_wheel ${BUILD_FLAG} > /dev/null
7669

7770
cp dist/*.whl "${DEST}"
7871
popd

0 commit comments

Comments
 (0)