quiet-painter-18838
08/19/2022, 12:29 AM.pydistutils.cfg
[build_ext]
include_dirs=<YOUR PATH>/include/
library_dirs=<YOUR PATH>/lib/
I have confirmed it works fine if I have tried $ pip install pyaudio
in my terminal with the above file. My question is how can we apply this in pantsbuild environment. Could you help me?hundreds-father-404
08/19/2022, 12:39 AM[python-native-code]
cpp_flags.add = ["-I/opt/homebrew/Cellar/portaudio/19.7.0/include"]
ld_flags.add = ["-L/opt/homebrew/Cellar/portaudio/19.7.0/lib"]
But replace it with the relevant values on your machineenough-analyst-54434
08/19/2022, 12:49 AM--isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
But that's just about Pip's own configuration. It looks like .pydistutils.cfg
is not a Pip thing, but a Python thing: https://docs.python.org/3/install/#distutils-configuration-files--subprocess-environment-env-vars=HOME
quiet-painter-18838
08/19/2022, 1:00 AMhundreds-father-404
08/19/2022, 1:04 AMNow I am trying to add “CPPFLAGS” of environment variable because the above configuration is only for the apple silicon machine.If you only want this to apply for some users, you may want to use a
.pants.rc
file: https://www.pantsbuild.org/docs/options#pantsrc-filequiet-painter-18838
08/19/2022, 1:24 AMhundreds-father-404
08/19/2022, 1:25 AM