diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh index 3fade6147..950ea49d7 100755 --- a/scripts/uninstall.sh +++ b/scripts/uninstall.sh @@ -1,8 +1,9 @@ #!/bin/bash -modules=$(pip3 list --format=legacy | grep 'aw-' | grep -o '^aw-[^ ]*') +# pip removed --format=legacy in 23.0 (2023-01-30); use --format=freeze which +# outputs `aw-core==0.5.x` and is stable across pip versions. +modules=$(pip3 list --format=freeze | grep '^aw-' | grep -o '^aw-[^=]*') for module in $modules; do pip3 uninstall -y $module done -