Skip to content

Commit eb4fca4

Browse files
committed
try ios wheels
1 parent b054bed commit eb4fca4

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.github/workflows/wheels.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ jobs:
7373
fail-fast: false
7474
matrix:
7575
include:
76+
- os: macos-15
77+
name: ios
78+
cibw:
79+
platform: "ios"
80+
7681
# - os: macos-13
7782
# name: mac-pypy
7883
# cibw:

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,13 @@ repair-wheel-command = "delocate-wheel --sanitize-rpaths --require-archs {deloca
186186
ZMQ_PREFIX = "/tmp/zmq"
187187
MACOSX_DEPLOYMENT_TARGET = "10.15"
188188

189+
[tool.cibuildwheel.ios]
190+
before-all = "bash tools/install_libzmq.sh"
191+
repair-wheel-command = "delocate-wheel --sanitize-rpaths --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
192+
193+
[tool.cibuildwheel.ios.environment]
194+
ZMQ_PREFIX = "/tmp/zmq"
195+
189196
[tool.cibuildwheel.windows]
190197
before-all = "python buildutils/bundle.py licenses"
191198
repair-wheel-command = """\

tools/install_libzmq.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PYZMQ_DIR="$PWD"
77
LICENSE_DIR="$PYZMQ_DIR/licenses"
88
test -d "$LICENSE_DIR" || mkdir "$LICENSE_DIR"
99
SHLIB_EXT=".so"
10-
if [[ "$(uname)" == "Darwin" ]]; then
10+
if [[ "$(uname)" == "Darwin" && "${CIBW_PLATFORM:-macos}" == "macos" ]]; then
1111
SHLIB_EXT=".dylib"
1212
# make sure deployment target is set
1313
echo "${MACOSX_DEPLOYMENT_TARGET=}"
@@ -33,7 +33,7 @@ if [[ "$(uname)" == "Darwin" ]]; then
3333
exit 1
3434
;;
3535
esac
36-
echo "building libzmq for mac ${ARCHS}"
36+
echo "building libzmq for ${CIBW_PLATFORM:-macos} ${ARCHS}"
3737
export CXX="${CC:-clang++}"
3838
for arch in ${ARCHS}; do
3939
# seem to need ARCH in CXX for libtool
@@ -42,6 +42,10 @@ if [[ "$(uname)" == "Darwin" ]]; then
4242
export CXXFLAGS="-arch ${arch} ${CXXFLAGS:-}"
4343
export LDFLAGS="-arch ${arch} ${LDFLAGS:-}"
4444
done
45+
46+
if [[ "${CIBW_PLATFORM:-}" == "ios" ]]; then
47+
echo "building libzmq for ${CIBW_PLATFORM}"
48+
SHLIB_EXT=".dylib"
4549
fi
4650

4751
PREFIX="${ZMQ_PREFIX:-/usr/local}"

0 commit comments

Comments
 (0)