1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-15 23:03:53 -05:00

CI: + build with bundled MacOS dependencies (#3123)

This commit is contained in:
native-api
2024-12-07 13:58:35 +03:00
committed by GitHub
parent 4c90a3147f
commit 25e70b2c80
2 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
declare -a packages rdepends
packages=("$@")
# have to try one by one, otherwise `brew uses` would only print
# packages that require them all rather than any of them
for package in "${packages[@]}"; do
rdepends+=($(brew uses --installed --include-build --include-test --include-optional --recursive "$package"))
done
brew uninstall "${packages[@]}" "${rdepends[@]}"