File tree Expand file tree Collapse file tree 4 files changed +13
-7
lines changed
aws-parallelcluster-environment/recipes/install
aws-parallelcluster-platform/recipes/install
aws-parallelcluster-shared Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1515virtualenv_name = 'cfn_bootstrap_virtualenv'
1616pyenv_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 = '3.11.11 '
1919virtualenv_path = "#{ pyenv_root } /versions/#{ python_version } /envs/#{ virtualenv_name } "
2020
2121node . default [ 'cluster' ] [ 'cfn_bootstrap_virtualenv_path' ] = virtualenv_path
Original file line number Diff line number Diff line change 3535 action :create_if_missing
3636end
3737
38+ cookbook_file "#{ cookbook_virtualenv_path } /requirements.txt" do
39+ source "cookbook_virtualenv/requirements.txt"
40+ mode '0755'
41+ end
42+
3843bash 'pip install' do
3944 user 'root'
4045 group 'root'
4146 cwd "#{ node [ 'cluster' ] [ 'base_dir' ] } "
4247 code <<-REQ
4348 set -e
44- tar xzf cookbook-dependencies.tgz
45- cd dependencies
46- #{ virtualenv_path } /bin/pip install * -f ./ --no-index
49+ # tar xzf cookbook-dependencies.tgz
50+ # cd dependencies
51+ # #{ virtualenv_path } /bin/pip install * -f ./ --no-index
52+ #{ virtualenv_path } /bin/pip install -r requirements.txt
4753 REQ
4854end
Original file line number Diff line number Diff line change 11# Python Version
2- default [ 'cluster' ] [ 'python-version' ] = '3.9.20 '
3- default [ 'cluster' ] [ 'python-major-minor-version' ] = '3.9 '
2+ default [ 'cluster' ] [ 'python-version' ] = '3.11.11 '
3+ default [ 'cluster' ] [ 'python-major-minor-version' ] = '3.11 '
44
55# ParallelCluster versions
66default [ 'cluster' ] [ 'parallelcluster-version' ] = '3.13.0'
Original file line number Diff line number Diff line change 1414
1515action :run do
1616 python_version = new_resource . python_version || node [ 'cluster' ] [ 'python-version' ]
17- python_url = "#{ node [ 'cluster' ] [ 'artifacts_s3_url' ] } /dependencies/ python/Python-#{ python_version } .tgz"
17+ python_url = "https://www. python.org/ftp/python/ #{ python_version } /Python-#{ python_version } .tgz"
1818
1919 if !aws_region . start_with? ( "us-iso" ) && new_resource . python_version
2020 python_url = "https://www.python.org/ftp/python/#{ python_version } /Python-#{ python_version } .tgz"
You can’t perform that action at this time.
0 commit comments