diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index 89f7ecfa5e654..c21bd3ce846f2 100644 --- a/Library/Homebrew/extend/ENV/super.rb +++ b/Library/Homebrew/extend/ENV/super.rb @@ -93,6 +93,11 @@ def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_a # Prevent Go from automatically downloading a newer toolchain than the one that we have. # https://tip.golang.org/doc/toolchain self["GOTOOLCHAIN"] = "local" + # Prevent Python packages from using bundled libraries by default. + # Currently for hidapi, pyzmq and pynacl + self["HIDAPI_SYSTEM_HIDAPI"] = "1" + self["PYZMQ_NO_BUNDLE"] = "1" + self["SODIUM_INSTALL"] = "system" set_debug_symbols if debug_symbols