From 1baaec85838fdb95c1d42777ded4ab0f4327edee Mon Sep 17 00:00:00 2001 From: FrancoGiachetta Date: Mon, 7 Apr 2025 17:36:27 -0300 Subject: [PATCH 1/3] avoid installing gmp if it is already installed --- install-scripts/install-macos.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install-scripts/install-macos.sh b/install-scripts/install-macos.sh index c42d7c7307..dfd56b1162 100755 --- a/install-scripts/install-macos.sh +++ b/install-scripts/install-macos.sh @@ -9,7 +9,11 @@ source "$HOME/.cargo/env" rustc --version # Install pyenv -brew install pyenv gmp +brew install pyenv + +#install gmp +ifeq (, $(shell which gmp)) + brew install gmp # Make sure pyenv has been installed correctly pyenv -v From 81829811f14fa8b555d578a2ae46d8bc8cf21f45 Mon Sep 17 00:00:00 2001 From: FrancoGiachetta Date: Mon, 7 Apr 2025 18:06:51 -0300 Subject: [PATCH 2/3] fix --- install-scripts/install-macos.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install-scripts/install-macos.sh b/install-scripts/install-macos.sh index dfd56b1162..b877e81d18 100755 --- a/install-scripts/install-macos.sh +++ b/install-scripts/install-macos.sh @@ -14,6 +14,7 @@ brew install pyenv #install gmp ifeq (, $(shell which gmp)) brew install gmp +endif # Make sure pyenv has been installed correctly pyenv -v From 983ec2e9d12f1d69ecafbeab5bc774a5dd5fbd84 Mon Sep 17 00:00:00 2001 From: FrancoGiachetta Date: Tue, 8 Apr 2025 09:23:43 -0300 Subject: [PATCH 3/3] fix if --- install-scripts/install-macos.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-scripts/install-macos.sh b/install-scripts/install-macos.sh index b877e81d18..cfa3dfb896 100755 --- a/install-scripts/install-macos.sh +++ b/install-scripts/install-macos.sh @@ -11,10 +11,10 @@ rustc --version # Install pyenv brew install pyenv -#install gmp -ifeq (, $(shell which gmp)) +# install gmp if it wasn't intalled before +if ! type foobar &> /dev/null; then brew install gmp -endif +fi # Make sure pyenv has been installed correctly pyenv -v