Skip to content

Commit 3e3b9a0

Browse files
author
Marc Pieper
committed
Fix macOS build
1 parent d02026a commit 3e3b9a0

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ before-build = "pip install delvewheel pupil-pthreads-win"
3434
repair-wheel-command = "python scripts/repair-wheels-win.py tmp/dep_paths.json {wheel} {dest_dir}"
3535

3636
[tool.cibuildwheel.macos]
37+
environment = { MACOSX_DEPLOYMENT_TARGET = "15.0" }
3738
before-all = ["brew install automake libtool", "{project}/scripts/build-deps-unix.sh"]
3839

3940
[tool.cibuildwheel.linux]

scripts/build-deps-unix.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Build libusb master
44
pushd libusb-source
55
./bootstrap.sh
6-
./configure
6+
./configure --prefix=$HOME/.local
77
make -j
88
make install
99
popd
@@ -15,5 +15,6 @@ mkdir $BUILD_DIR
1515
pushd $BUILD_DIR
1616
cmake ..
1717
cmake --build .
18+
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local .
1819
cmake --install .
1920
pushd

0 commit comments

Comments
 (0)