From 755827d0279a7c1229c64d7aad4f8b51c3da22dc Mon Sep 17 00:00:00 2001 From: hanwenli Date: Tue, 12 Aug 2025 09:03:53 -0700 Subject: [PATCH] Avoid Python re-installation if already installed This saves 8 minutes from build-image command Signed-off-by: Hanwen --- cookbooks/aws-parallelcluster-shared/resources/install_pyenv.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/cookbooks/aws-parallelcluster-shared/resources/install_pyenv.rb b/cookbooks/aws-parallelcluster-shared/resources/install_pyenv.rb index 1f7afb1266..194d9c40ab 100644 --- a/cookbooks/aws-parallelcluster-shared/resources/install_pyenv.rb +++ b/cookbooks/aws-parallelcluster-shared/resources/install_pyenv.rb @@ -53,5 +53,6 @@ make make install VENV + not_if { Dir.glob("#{prefix}/versions/#{python_version}/bin/python*").any? } end end