| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
# This is a convenience script to build all of the wheels outside of the CI |
| 4 |
# system. It requires the cibuildwheel package to be installed, and the |
| 5 |
# executable on PATH, as well as `msgfmt` from gettext, which can be installed |
| 6 |
# with `brew` as follows: |
| 7 |
# |
| 8 |
# $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" |
| 9 |
# $ echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile |
| 10 |
# <logout> |
| 11 |
# $ brew install gettext |
| 12 |
# |
| 13 |
# A system-wide installation of the version of python corresponding to each |
| 14 |
# wheel is required. They can be installed by this script by setting `CI=true` |
| 15 |
# in the environment before running it, and providing the `sudo` password when |
| 16 |
# prompted. |
| 17 |
|
| 18 |
set -e |
| 19 |
|
| 20 |
if ! which msgfmt 2>/dev/null 1>/dev/null; then |
| 21 |
echo "msgfmt executable not found" >&2 |
| 22 |
exit 1 |
| 23 |
fi |
| 24 |
|
| 25 |
# TODO: purge the repo? |
| 26 |
|
| 27 |
cibuildwheel --output-dir dist/wheels |