From 5df7197c3c62cb120ceace38babb58d8935fba29 Mon Sep 17 00:00:00 2001 From: scriptPilot Date: Sun, 17 Mar 2024 01:31:02 +0100 Subject: [PATCH 1/2] install Python only if not yet installed --- install_mac.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install_mac.sh b/install_mac.sh index 8037b7d7..25b3e4de 100755 --- a/install_mac.sh +++ b/install_mac.sh @@ -1,5 +1,12 @@ +# Install Python if not found +if command -v python3 &>/dev/null; then + echo "python3 already available" +else + brew install python +fi + # Install dependencies -brew install python gdal spatialindex p7zip proj python-tk +brew install gdal spatialindex p7zip proj python-tk # Install pyproj pip3 install pyproj From c7902870648eb479afe49d15ca0d71a80ee8921b Mon Sep 17 00:00:00 2001 From: scriptPilot Date: Sun, 17 Mar 2024 02:32:33 +0100 Subject: [PATCH 2/2] Update install_mac.sh --- install_mac.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/install_mac.sh b/install_mac.sh index 25b3e4de..ed933361 100755 --- a/install_mac.sh +++ b/install_mac.sh @@ -1,12 +1,5 @@ -# Install Python if not found -if command -v python3 &>/dev/null; then - echo "python3 already available" -else - brew install python -fi - # Install dependencies -brew install gdal spatialindex p7zip proj python-tk +brew install gdal spatialindex p7zip proj # Install pyproj pip3 install pyproj