Skip to content

Commit 93c9a23

Browse files
committed
Support for macOS
1 parent 0be5278 commit 93c9a23

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.github/workflows/wheels.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,18 @@ jobs:
1111
# os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-latest]
1212
# os: [ubuntu-latest]
1313
# os: [windows-2019] #latest]
14-
os: [ubuntu-latest, windows-2019, ubuntu-24.04-arm]
14+
# os: [macos-latest]
15+
os: [ubuntu-latest, windows-2019, ubuntu-24.04-arm, macos-13, macos-latest]
1516

1617
steps:
1718
- uses: actions/checkout@v4
1819

20+
- name: Install bootstrap Python (macOS only)
21+
if: runner.os == 'macOS'
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: '3.8'
25+
1926
# Apply patch only on Windows
2027
- name: Apply header patch on Windows
2128
if: matrix.os == 'windows-latest'
@@ -48,6 +55,22 @@ jobs:
4855
# since commands are executed in a UNIX-like shell expecting 'mkdir -p'
4956
CIBW_ENVIRONMENT: "MSYSCON=y"
5057
CIBW_BUILD_VERBOSITY: 1
58+
# CIBW_REPAIR_WHEEL_COMMAND_MACOS: 'delocate-wheel -w {dest_dir} -v {wheel}'
59+
CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
60+
sh -c '
61+
set -e
62+
63+
TMP_DIR=$(mktemp -d);
64+
unzip -q {wheel} -d "$TMP_DIR";
65+
66+
otool -L "$TMP_DIR"/ecdev/lib/libecrt.dylib;
67+
otool -L "$TMP_DIR"/ecdev/lib/libectp.dylib;
68+
otool -L "$TMP_DIR"/ecdev/bin/ecc;
69+
70+
rm -r "$TMP_DIR"
71+
72+
cp {wheel} {dest_dir}
73+
'
5174
5275
# CIBW_SOME_OPTION: value
5376
# CIBW_BEFORE_BUILD: |

eC

Submodule eC updated 63 files

0 commit comments

Comments
 (0)