Last active
September 27, 2022 22:05
-
-
Save jarpy/571b21864cc25e071521757f11dd4f01 to your computer and use it in GitHub Desktop.
Install Pyo on ARM (M1) Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# These libraries are required when compiling the C extension for Pyo. | |
libs=(liblo libsndfile portaudio portmidi) | |
# Let the C compiler know where to find the headers and library files. | |
CFLAGS="" | |
for lib in "${libs[@]}"; do | |
CFLAGS+="-I/opt/homebrew/opt/${lib}/include -L/opt/homebrew/opt/${lib}/lib " | |
done | |
export CFLAGS | |
# Now Pyo will be able to compile. | |
pip install pyo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment