Skip to content

Commit

Permalink
Don't try and install ninja from apt each pip match
Browse files Browse the repository at this point in the history
  • Loading branch information
L1ghtmann authored and 0cyn committed Jan 13, 2024
1 parent adaebae commit 1e96f9c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dragon/shscripts/prerun_checks
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ if [[ $PLATFORM == Darwin ]]; then
# need ninja built specifically for iOS
if python3 -c "import ninja" &> /dev/null; then
python3 -m pip uninstall -y ninja
sudo apt update --allow-insecure-repositories
sudo apt install -y ninja
if ! dpkg -l ninja &> /dev/null; then
sudo apt update --allow-insecure-repositories
sudo apt install -y ninja
fi
fi

if ! [[ -x $(command -v clang) ]]; then
Expand Down

0 comments on commit 1e96f9c

Please sign in to comment.