diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 658df78..8b57b58 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -11,7 +11,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [macos-12, ubuntu-latest, windows-latest] + os: [macos-12, ubuntu-latest, windows-2019] steps: # Check out repository using git-lfs @@ -32,7 +32,8 @@ jobs: # Options (https://cibuildwheel.readthedocs.io/en/stable/options/) env: CIBW_SKIP: cp36-* cp37-* cp38-* *pp37-* pp38-* *musllinux* - CIBW_BEFORE_ALL: python3 -m pip install --upgrade pip wheel distutils setuptools cffi packaging + CIBW_BEFORE_BUILD_MACOS: python3 -m pip install --upgrade pip wheel setuptools cffi packaging + CIBW_BEFORE_BUILD_WINDOWS: python3 -m pip install --upgrade pip wheel setuptools cffi packaging CIBW_ARCHS_MACOS: "x86_64 arm64" CIBW_ARCHS_WINDOWS: "AMD64" CIBW_ARCHS_LINUX: "x86_64" diff --git a/src/icegrams/trie_build.py b/src/icegrams/trie_build.py index 66810f9..2630a5a 100644 --- a/src/icegrams/trie_build.py +++ b/src/icegrams/trie_build.py @@ -101,7 +101,7 @@ elif MACOS: os.environ["CFLAGS"] = "-stdlib=libc++" # Fixes PyPy build on macOS 10.15.6+ os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.9" - extra_compile_args = ["-mmacosx-version-min=10.7", "-stdlib=libc++"] + extra_compile_args = ["-mmacosx-version-min=10.9", "-stdlib=libc++"] else: # Adding -O3 to the compiler arguments doesn't seem to make # any discernible difference in lookup speed