Skip to content

Commit ea1912d

Browse files
committed
python 3.11
1 parent baad3da commit ea1912d

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
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 = '3.11.11'
1919
virtualenv_path = "#{pyenv_root}/versions/#{python_version}/envs/#{virtualenv_name}"
2020

2121
node.default['cluster']['cfn_bootstrap_virtualenv_path'] = virtualenv_path

cookbooks/aws-parallelcluster-platform/recipes/install/cookbook_virtualenv.rb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,20 @@
3535
action :create_if_missing
3636
end
3737

38+
cookbook_file "#{cookbook_virtualenv_path}/requirements.txt" do
39+
source "cookbook_virtualenv/requirements.txt"
40+
mode '0755'
41+
end
42+
3843
bash '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
4854
end

cookbooks/aws-parallelcluster-shared/attributes/versions.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
66
default['cluster']['parallelcluster-version'] = '3.13.0'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
action :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"

0 commit comments

Comments
 (0)