Skip to content

Commit

Permalink
Force a universal binary for bitarray
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanperret authored and dl1com committed Jul 7, 2024
1 parent fa388f4 commit b30edbc
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/build-multi-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,23 @@ jobs:
run: |
brew install avrdude
brew install qt
python -m pip install delocate
python -m pip download --only-binary=:all: --platform macosx_10_09_x86_64 numpy==1.26.4
python -m pip download --only-binary=:all: --platform macosx_11_0_arm64 numpy==1.26.4
mkdir tmp-wheel/
python -m pip install delocate
# Find platform values on e.g. https://pypi.org/project/numpy/1.26.4/#files
python -m pip download --only-binary=:all: --platform macosx_10_09_x86_64 "$(grep numpy requirements.build.txt)"
python -m pip download --only-binary=:all: --platform macosx_11_0_arm64 "$(grep numpy requirements.build.txt)"
delocate-fuse numpy*arm* numpy*x86* -w tmp-wheel/
python -m pip download --only-binary=:all: --platform macosx_10_10_x86_64 Pillow==10.0.0
python -m pip download --only-binary=:all: --platform macosx_11_0_arm64 Pillow==10.0.0
python -m pip download --only-binary=:all: --platform macosx_10_10_x86_64 "$(grep Pillow requirements.build.txt)"
python -m pip download --only-binary=:all: --platform macosx_11_0_arm64 "$(grep Pillow requirements.build.txt)"
delocate-fuse Pillow*arm* Pillow*x86* -w tmp-wheel/
python -m pip install tmp-wheel/*.whl
python -m pip download --only-binary=:all: --platform=macosx_10_9_universal2 "$(grep bitarray requirements.build.txt)"
python -m pip install tmp-wheel/*.whl bitarray*.whl
python -m pip install --no-binary charset_normalizer -r requirements.build.txt
- name: Restore cached firmware
id: firmware-cache
Expand Down

0 comments on commit b30edbc

Please sign in to comment.