Skip to content

Commit a8ee5b4

Browse files
committed
Install python 3.9 for al2
1 parent 9b5ace4 commit a8ee5b4

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

cookbooks/aws-parallelcluster-environment/recipes/install/cfn_bootstrap.rb

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
virtualenv_name = 'cfn_bootstrap_virtualenv'
1616
pyenv_root = node['cluster']['system_pyenv_root']
1717
# FIXME: Python Version cfn_bootstrap_virtualenv due to a bug with cfn-hup
18-
python_version = '3.9.20'
18+
python_version = node['cluster']['python-version']
1919
virtualenv_path = "#{pyenv_root}/versions/#{python_version}/envs/#{virtualenv_name}"
2020

2121
node.default['cluster']['cfn_bootstrap_virtualenv_path'] = virtualenv_path
@@ -33,26 +33,6 @@
3333
not_if { ::File.exist?("#{virtualenv_path}/bin/activate") }
3434
end
3535

36-
remote_file "#{node['cluster']['base_dir']}/cfn-dependencies.tgz" do
37-
source "#{node['cluster']['artifacts_s3_url']}/dependencies/PyPi/#{node['kernel']['machine']}/cfn-dependencies.tgz"
38-
mode '0644'
39-
retries 3
40-
retry_delay 5
41-
action :create_if_missing
42-
end
43-
44-
bash 'pip install' do
45-
user 'root'
46-
group 'root'
47-
cwd "#{node['cluster']['base_dir']}"
48-
code <<-REQ
49-
set -e
50-
tar xzf cfn-dependencies.tgz
51-
cd cfn
52-
#{virtualenv_path}/bin/pip install * -f ./ --no-index
53-
REQ
54-
end
55-
5636
cfnbootstrap_version = '2.0-32'
5737
cfnbootstrap_package = "aws-cfn-bootstrap-py3-#{cfnbootstrap_version}.tar.gz"
5838

0 commit comments

Comments
 (0)