Skip to content

Commit 755827d

Browse files
Avoid Python re-installation if already installed
This saves 8 minutes from build-image command Signed-off-by: Hanwen <[email protected]>
1 parent 433b130 commit 755827d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cookbooks/aws-parallelcluster-shared/resources/install_pyenv.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@
5353
make
5454
make install
5555
VENV
56+
not_if { Dir.glob("#{prefix}/versions/#{python_version}/bin/python*").any? }
5657
end
5758
end

0 commit comments

Comments
 (0)