From e10cb6800073f0b987d9953e49810bc2977d2222 Mon Sep 17 00:00:00 2001 From: Philip Kwesiga Date: Tue, 24 Mar 2020 22:24:53 +0300 Subject: [PATCH 01/27] retry installation of setuptools --- recipes/pip.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/pip.rb b/recipes/pip.rb index 9051f27..887b2d0 100644 --- a/recipes/pip.rb +++ b/recipes/pip.rb @@ -49,5 +49,6 @@ end execute 'setuptools' do - command 'pip3 install setuptools==41.0.1' + command 'pip3 install setuptools==41.0.1 | python3' + retries 2 end From 10e22157b1728a301c7944a6733f68d09a600b76 Mon Sep 17 00:00:00 2001 From: Philip Kwesiga Date: Tue, 24 Mar 2020 23:05:44 +0300 Subject: [PATCH 02/27] ignore installation of setuptools --- recipes/pip.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/recipes/pip.rb b/recipes/pip.rb index 887b2d0..9e6cad7 100644 --- a/recipes/pip.rb +++ b/recipes/pip.rb @@ -47,8 +47,3 @@ command 'sudo curl -s -N https://bootstrap.pypa.io/ez_setup.py -o - | sudo python3.6 && sudo python3.6 -m easy_install pip' not_if { ::File.exists?(pip_binary) } end - -execute 'setuptools' do - command 'pip3 install setuptools==41.0.1 | python3' - retries 2 -end From b5b9774136c548d48f6d2becd9e00bbe7fedf6b9 Mon Sep 17 00:00:00 2001 From: Shankar Ambady Date: Tue, 25 May 2021 15:41:29 -0400 Subject: [PATCH 03/27] Update pip.rb --- recipes/pip.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/pip.rb b/recipes/pip.rb index 9e6cad7..5d768c6 100644 --- a/recipes/pip.rb +++ b/recipes/pip.rb @@ -44,6 +44,6 @@ command <<-EOF #{node['python']['binary']} get-pip.py EOF - command 'sudo curl -s -N https://bootstrap.pypa.io/ez_setup.py -o - | sudo python3.6 && sudo python3.6 -m easy_install pip' + command 'sudo curl -s -N https://bootstrap.pypa.io/ez_setup.py -o - | sudo python3.6 && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && sudo python3.6 get-pip.py' not_if { ::File.exists?(pip_binary) } end From 6e113fd172d514408b1467876a34e3b025b7a62b Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Thu, 10 Mar 2022 18:11:45 +0800 Subject: [PATCH 04/27] Testing fixes --- attributes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributes/default.rb b/attributes/default.rb index 699df21..86498b9 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -18,7 +18,7 @@ # limitations under the License. # -default['python']['install_method'] = 'package' +default['python']['install_method'] = 'source' if python['install_method'] == 'package' case platform From 52bb320ed398848df2e53924561df9f54e5c93c6 Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Thu, 10 Mar 2022 18:20:38 +0800 Subject: [PATCH 05/27] Testing fixes --- attributes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributes/default.rb b/attributes/default.rb index 86498b9..699df21 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -18,7 +18,7 @@ # limitations under the License. # -default['python']['install_method'] = 'source' +default['python']['install_method'] = 'package' if python['install_method'] == 'package' case platform From e60553a3b71a24774967f29c09b2ccd695e2e3b6 Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Thu, 10 Mar 2022 18:25:38 +0800 Subject: [PATCH 06/27] Testing fixes --- recipes/python.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/python.rb b/recipes/python.rb index c8b5a6e..b83bd08 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -1,3 +1,5 @@ +ppa "deadsnakes/ppa" + apt_repository "python3" do uri 'http://ppa.launchpad.net/deadsnakes/ppa/ubuntu' components ['trusty main'] From cd30c9a0281eb8b856eac8be359b1566ca0d6316 Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Thu, 10 Mar 2022 18:30:57 +0800 Subject: [PATCH 07/27] Testing fixes --- recipes/python.rb | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/recipes/python.rb b/recipes/python.rb index b83bd08..07576f7 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -1,24 +1,27 @@ -ppa "deadsnakes/ppa" +# apt_repository "python3" do +# uri 'http://ppa.launchpad.net/deadsnakes/ppa/ubuntu' +# components ['trusty main'] +# end -apt_repository "python3" do - uri 'http://ppa.launchpad.net/deadsnakes/ppa/ubuntu' - components ['trusty main'] -end +batch 'install python3.6 from source' do + code <<-EOH + cd /tmp && wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz && tar -xvf Python-3.6.3.tgz && cd Python-3.6.3 && sudo ./configure --enable-optimizations; + EOH + end + +# execute "update" do +# command 'sudo apt-get update' +# end +# package 'python3.6' do +# options '--force-yes' +# action :install +# end -execute "update" do - command 'sudo apt-get update' -end - -package 'python3.6' do - options '--force-yes' - action :install -end - -package 'python3.6-dev' do - options '--force-yes' - action :install -end +# package 'python3.6-dev' do +# options '--force-yes' +# action :install +# end alternatives 'python-set-version-3' do link_name 'python3' From cfad66f09f7672a352e6fc819ab6afbcd2ee05f3 Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Thu, 10 Mar 2022 18:36:05 +0800 Subject: [PATCH 08/27] Testing fixes --- recipes/python.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/python.rb b/recipes/python.rb index 07576f7..610d20e 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -3,7 +3,8 @@ # components ['trusty main'] # end -batch 'install python3.6 from source' do +script 'install python3.6 from source' do + interpreter "bash" code <<-EOH cd /tmp && wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz && tar -xvf Python-3.6.3.tgz && cd Python-3.6.3 && sudo ./configure --enable-optimizations; EOH From 74f742da437a74144d9031f5e27a92a99f705181 Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Thu, 10 Mar 2022 18:42:00 +0800 Subject: [PATCH 09/27] Testing fixes --- recipes/python.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/python.rb b/recipes/python.rb index 610d20e..46f57e9 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -6,7 +6,7 @@ script 'install python3.6 from source' do interpreter "bash" code <<-EOH - cd /tmp && wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz && tar -xvf Python-3.6.3.tgz && cd Python-3.6.3 && sudo ./configure --enable-optimizations; + cd /tmp && wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz && tar -xvf Python-3.6.3.tgz && cd Python-3.6.3 && sudo ./configure --enable-optimizations && make && sudo make install; EOH end From 2e7e599f3c8fe848e83ce3a83833b7c478aa6e11 Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Thu, 10 Mar 2022 19:10:20 +0800 Subject: [PATCH 10/27] Testing fixes --- recipes/python.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/python.rb b/recipes/python.rb index 46f57e9..bab3dac 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -3,12 +3,12 @@ # components ['trusty main'] # end -script 'install python3.6 from source' do - interpreter "bash" +bash 'install python3.6 from source' do code <<-EOH cd /tmp && wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz && tar -xvf Python-3.6.3.tgz && cd Python-3.6.3 && sudo ./configure --enable-optimizations && make && sudo make install; EOH - end + flags "-x" +end # execute "update" do # command 'sudo apt-get update' @@ -26,7 +26,7 @@ alternatives 'python-set-version-3' do link_name 'python3' - path '/usr/bin/python3.6' + path '/opt/python/3.6/bin/python3.6' priority 100 action :install end \ No newline at end of file From 8a0e5def9873635b33f1eca1c2ce00bbb9965261 Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Thu, 10 Mar 2022 20:40:14 +0800 Subject: [PATCH 11/27] Testing fixes --- recipes/python.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/recipes/python.rb b/recipes/python.rb index bab3dac..4fdc354 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -5,7 +5,7 @@ bash 'install python3.6 from source' do code <<-EOH - cd /tmp && wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz && tar -xvf Python-3.6.3.tgz && cd Python-3.6.3 && sudo ./configure --enable-optimizations && make && sudo make install; + cd /tmp && wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz && tar -xvf Python-3.6.3.tgz && cd Python-3.6.3 && sudo ./configure --enable-optimizations && make && sudo make altinstall; EOH flags "-x" end @@ -24,9 +24,9 @@ # action :install # end -alternatives 'python-set-version-3' do - link_name 'python3' - path '/opt/python/3.6/bin/python3.6' - priority 100 - action :install -end \ No newline at end of file +# alternatives 'python-set-version-3' do +# link_name 'python3' +# path '/opt/python/3.6/bin/python3.6' +# priority 100 +# action :install +# end \ No newline at end of file From 355d5ea70170780968d5c835d56a1879ad911523 Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Thu, 10 Mar 2022 21:55:54 +0800 Subject: [PATCH 12/27] Testing fixes --- recipes/python.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/python.rb b/recipes/python.rb index 4fdc354..a66dcf9 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -5,7 +5,7 @@ bash 'install python3.6 from source' do code <<-EOH - cd /tmp && wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz && tar -xvf Python-3.6.3.tgz && cd Python-3.6.3 && sudo ./configure --enable-optimizations && make && sudo make altinstall; + sudo sudo apt-get update && sudo add-apt-repository ppa:deadsnakes/ppa -y && sudo apt-get install python3.6 -y; EOH flags "-x" end From 0cd6880c213a2e8ca934795b0487bf403cedbfab Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Thu, 10 Mar 2022 22:03:31 +0800 Subject: [PATCH 13/27] Testing fixes --- recipes/python.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/python.rb b/recipes/python.rb index a66dcf9..4ef246d 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -5,7 +5,7 @@ bash 'install python3.6 from source' do code <<-EOH - sudo sudo apt-get update && sudo add-apt-repository ppa:deadsnakes/ppa -y && sudo apt-get install python3.6 -y; + sudo add-apt-repository ppa:deadsnakes/ppa -y && sudo apt-get update && sudo apt-get install python3.6 -y; EOH flags "-x" end From 7820991c2934ffa7315878ab66ff57aa9c82847c Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Thu, 10 Mar 2022 22:11:56 +0800 Subject: [PATCH 14/27] Testing fixes --- recipes/python.rb | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/recipes/python.rb b/recipes/python.rb index 4ef246d..8ebd145 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -3,9 +3,23 @@ # components ['trusty main'] # end -bash 'install python3.6 from source' do +bash 'add deadsnakes ppa' do code <<-EOH - sudo add-apt-repository ppa:deadsnakes/ppa -y && sudo apt-get update && sudo apt-get install python3.6 -y; + sudo add-apt-repository ppa:deadsnakes/ppa -y; + EOH + flags "-x" +end + +bash 'update apt-get repos' do + code <<-EOH + sudo apt-get update; + EOH + flags "-x" +end + +bash 'install python3.6' do + code <<-EOH + sudo apt-get install python3.6 python3.6-dev -y; EOH flags "-x" end From 18b05d88f4e6b55b5931e2fe9803539f49d9b369 Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Thu, 10 Mar 2022 22:18:46 +0800 Subject: [PATCH 15/27] Testing fixes --- recipes/python.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/python.rb b/recipes/python.rb index 8ebd145..109d8f5 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -5,21 +5,21 @@ bash 'add deadsnakes ppa' do code <<-EOH - sudo add-apt-repository ppa:deadsnakes/ppa -y; + sudo add-apt-repository ppa:fkrull/deadsnakes -y; EOH flags "-x" end bash 'update apt-get repos' do code <<-EOH - sudo apt-get update; + sudo apt update; EOH flags "-x" end bash 'install python3.6' do code <<-EOH - sudo apt-get install python3.6 python3.6-dev -y; + sudo apt install python3.6 python3.6-dev -y; EOH flags "-x" end From 0be4a07cb10025a705a4cabd585f758a74f68497 Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Thu, 10 Mar 2022 22:33:36 +0800 Subject: [PATCH 16/27] Testing fixes --- recipes/pip.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/pip.rb b/recipes/pip.rb index 5d768c6..e78493e 100644 --- a/recipes/pip.rb +++ b/recipes/pip.rb @@ -44,6 +44,6 @@ command <<-EOF #{node['python']['binary']} get-pip.py EOF - command 'sudo curl -s -N https://bootstrap.pypa.io/ez_setup.py -o - | sudo python3.6 && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && sudo python3.6 get-pip.py' + command 'sudo curl -s -N https://bootstrap.pypa.io/ez_setup.py -o - | sudo python3.6 && curl https://bootstrap.pypa.io/pip/3.6/get-pip.py -o get-pip.py && sudo python3.6 get-pip.py' not_if { ::File.exists?(pip_binary) } end From da8476fca04d52047928d5cb5890c80808c713b8 Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Fri, 11 Mar 2022 12:58:47 +0800 Subject: [PATCH 17/27] AC-9419 - Cleaning up code for fixing the issue with Chef/python3.6 not installing correctly. --- recipes/pip.rb | 1 + recipes/python.rb | 33 ++++++--------------------------- 2 files changed, 7 insertions(+), 27 deletions(-) diff --git a/recipes/pip.rb b/recipes/pip.rb index e78493e..f8d9c99 100644 --- a/recipes/pip.rb +++ b/recipes/pip.rb @@ -39,6 +39,7 @@ not_if { ::File.exists?(pip_binary) } end +#because the latest version of the get-pip.py script requires >=python3.7, this is now hardcoded to the 3.6 version as recommended by pypa.io execute "install-pip" do cwd Chef::Config[:file_cache_path] command <<-EOF diff --git a/recipes/python.rb b/recipes/python.rb index 109d8f5..7d8f2e1 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -1,8 +1,5 @@ -# apt_repository "python3" do -# uri 'http://ppa.launchpad.net/deadsnakes/ppa/ubuntu' -# components ['trusty main'] -# end - +#Add in the deadsnakes ppa repository to app +#note the fkrull/deadsnakes url is correct for Ubuntu 14.04. For higher versions of Ubuntu (>16.0), this is instead "ppa:deadsnakes/ppa" bash 'add deadsnakes ppa' do code <<-EOH sudo add-apt-repository ppa:fkrull/deadsnakes -y; @@ -10,6 +7,7 @@ flags "-x" end +#Update the apt repository list bash 'update apt-get repos' do code <<-EOH sudo apt update; @@ -17,30 +15,11 @@ flags "-x" end +#install python3.6 and python3.6-dev via apt +#note that this is using the fkrull/deadsnakes repository listed above bash 'install python3.6' do code <<-EOH sudo apt install python3.6 python3.6-dev -y; EOH flags "-x" -end - -# execute "update" do -# command 'sudo apt-get update' -# end - -# package 'python3.6' do -# options '--force-yes' -# action :install -# end - -# package 'python3.6-dev' do -# options '--force-yes' -# action :install -# end - -# alternatives 'python-set-version-3' do -# link_name 'python3' -# path '/opt/python/3.6/bin/python3.6' -# priority 100 -# action :install -# end \ No newline at end of file +end \ No newline at end of file From 674a897e13d14181b74a8cea7d6e5b8ef6d0634a Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Tue, 15 Mar 2022 23:07:53 +0800 Subject: [PATCH 18/27] Updating the URL of the github repo so it no longer uses the expired git:// protocol --- Berksfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Berksfile b/Berksfile index 4e3dece..bfc33ee 100644 --- a/Berksfile +++ b/Berksfile @@ -8,5 +8,5 @@ group :integration do cookbook "yum" cookbook "build-essential" cookbook "python_test", :path => "./test/cookbooks/python_test" - cookbook 'alternatives', github: 'vkhatri/chef-alternatives', tag: "v0.2.0" + cookbook 'alternatives', git: 'https://github.com/vkhatri/chef-alternatives', tag: "v0.2.0" end From 1a5be620b6ab44b8ea00ff6ec1f992b79610a25c Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Tue, 15 Mar 2022 23:55:51 +0800 Subject: [PATCH 19/27] test --- Berksfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Berksfile b/Berksfile index bfc33ee..95c0791 100644 --- a/Berksfile +++ b/Berksfile @@ -8,5 +8,5 @@ group :integration do cookbook "yum" cookbook "build-essential" cookbook "python_test", :path => "./test/cookbooks/python_test" - cookbook 'alternatives', git: 'https://github.com/vkhatri/chef-alternatives', tag: "v0.2.0" + cookbook 'alternatives', git: 'https://github.com/vkhatri/chef-alternatives', tag: "v0.2.2" end From 92398b79fa32cdd2523864a853e2f9c402f3c1c8 Mon Sep 17 00:00:00 2001 From: Jeremy Brace Date: Wed, 16 Mar 2022 00:08:26 +0800 Subject: [PATCH 20/27] test --- Berksfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Berksfile b/Berksfile index 95c0791..bfc33ee 100644 --- a/Berksfile +++ b/Berksfile @@ -8,5 +8,5 @@ group :integration do cookbook "yum" cookbook "build-essential" cookbook "python_test", :path => "./test/cookbooks/python_test" - cookbook 'alternatives', git: 'https://github.com/vkhatri/chef-alternatives', tag: "v0.2.2" + cookbook 'alternatives', git: 'https://github.com/vkhatri/chef-alternatives', tag: "v0.2.0" end From 756d31eb1cb6f9a75d97d46c004660e8d6aa3148 Mon Sep 17 00:00:00 2001 From: Amos Welike Date: Wed, 11 Jan 2023 15:54:29 +0300 Subject: [PATCH 21/27] comment out install python 3.6 line --- recipes/python.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/recipes/python.rb b/recipes/python.rb index 7d8f2e1..8edb4a1 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -17,9 +17,9 @@ #install python3.6 and python3.6-dev via apt #note that this is using the fkrull/deadsnakes repository listed above -bash 'install python3.6' do - code <<-EOH - sudo apt install python3.6 python3.6-dev -y; - EOH - flags "-x" -end \ No newline at end of file +# bash 'install python3.6' do +# code <<-EOH +# sudo apt install python3.6 python3.6-dev -y; +# EOH +# flags "-x" +# end \ No newline at end of file From 5433f1d6f56ecd3a5cd944deccccf0ad0783b737 Mon Sep 17 00:00:00 2001 From: Amos Welike Date: Thu, 12 Jan 2023 07:03:44 +0300 Subject: [PATCH 22/27] uncomment python installation and add command to update repositories first --- recipes/python.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/recipes/python.rb b/recipes/python.rb index 8edb4a1..879b251 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -17,9 +17,10 @@ #install python3.6 and python3.6-dev via apt #note that this is using the fkrull/deadsnakes repository listed above -# bash 'install python3.6' do -# code <<-EOH -# sudo apt install python3.6 python3.6-dev -y; -# EOH -# flags "-x" -# end \ No newline at end of file +bash 'install python3.6' do + code <<-EOH + sudo apt update + sudo apt install python3.6 python3.6-dev -y; + EOH + flags "-x" +end \ No newline at end of file From 6a329ea8d370762cfd315e4bf640c8bd29ff9a87 Mon Sep 17 00:00:00 2001 From: Amos Welike Date: Thu, 12 Jan 2023 07:44:18 +0300 Subject: [PATCH 23/27] add --force-yes --- recipes/python.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/python.rb b/recipes/python.rb index 879b251..b4fa4d1 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -19,8 +19,8 @@ #note that this is using the fkrull/deadsnakes repository listed above bash 'install python3.6' do code <<-EOH - sudo apt update - sudo apt install python3.6 python3.6-dev -y; + sudo apt update -y --force-yes + sudo apt install python3.6 python3.6-dev -y --force-y; EOH flags "-x" end \ No newline at end of file From 444bd43fe014d561b119971aaebc30c33e29aa01 Mon Sep 17 00:00:00 2001 From: Amos Welike Date: Thu, 12 Jan 2023 07:52:27 +0300 Subject: [PATCH 24/27] comment out code --- recipes/python.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/recipes/python.rb b/recipes/python.rb index b4fa4d1..dd9cf15 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -17,10 +17,10 @@ #install python3.6 and python3.6-dev via apt #note that this is using the fkrull/deadsnakes repository listed above -bash 'install python3.6' do - code <<-EOH - sudo apt update -y --force-yes - sudo apt install python3.6 python3.6-dev -y --force-y; - EOH - flags "-x" -end \ No newline at end of file +# bash 'install python3.6' do +# code <<-EOH +# sudo apt update -y --force-yes +# sudo apt install python3.6 python3.6-dev -y --force-yes; +# EOH +# flags "-x" +# end \ No newline at end of file From 4129897bbdb99f676b40e9a98d06f55588f89717 Mon Sep 17 00:00:00 2001 From: Amos Welike Date: Thu, 12 Jan 2023 07:55:14 +0300 Subject: [PATCH 25/27] git split python install commands --- recipes/python.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/recipes/python.rb b/recipes/python.rb index dd9cf15..066ef30 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -19,8 +19,14 @@ #note that this is using the fkrull/deadsnakes repository listed above # bash 'install python3.6' do # code <<-EOH -# sudo apt update -y --force-yes -# sudo apt install python3.6 python3.6-dev -y --force-yes; +# sudo apt install python3.6 python3.6-dev -y; # EOH # flags "-x" -# end \ No newline at end of file +# end +bash 'install python3.6' do + code <<-EOH + sudo apt install python3.6 -y; + sudo apt install python3.6-dev -y; + EOH + flags "-x" +end \ No newline at end of file From fc52e91c90ea57bf3ea559d8fbc1f74d5653dc5c Mon Sep 17 00:00:00 2001 From: Amos Welike Date: Thu, 12 Jan 2023 08:01:14 +0300 Subject: [PATCH 26/27] comment out install python3.6 command --- recipes/python.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/recipes/python.rb b/recipes/python.rb index 066ef30..b8f2717 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -23,10 +23,10 @@ # EOH # flags "-x" # end -bash 'install python3.6' do - code <<-EOH - sudo apt install python3.6 -y; - sudo apt install python3.6-dev -y; - EOH - flags "-x" -end \ No newline at end of file +# bash 'install python3.6' do +# code <<-EOH +# sudo apt install python3.6 -y; +# sudo apt install python3.6-dev -y; +# EOH +# flags "-x" +# end \ No newline at end of file From f26fe8c3acc68a9605682f1d82b9373473d36f4a Mon Sep 17 00:00:00 2001 From: Amos Welike Date: Thu, 12 Jan 2023 15:41:04 +0300 Subject: [PATCH 27/27] update python 3.6 install commands --- recipes/python.rb | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/recipes/python.rb b/recipes/python.rb index b8f2717..bd4d269 100644 --- a/recipes/python.rb +++ b/recipes/python.rb @@ -17,16 +17,16 @@ #install python3.6 and python3.6-dev via apt #note that this is using the fkrull/deadsnakes repository listed above -# bash 'install python3.6' do -# code <<-EOH -# sudo apt install python3.6 python3.6-dev -y; -# EOH -# flags "-x" -# end -# bash 'install python3.6' do -# code <<-EOH -# sudo apt install python3.6 -y; -# sudo apt install python3.6-dev -y; -# EOH -# flags "-x" -# end \ No newline at end of file +bash 'install python3.6' do + code <<-EOH + sudo apt-get purge python3.6; + sudo apt-get autoremove && sudo apt-get autoclean; + sudo apt install python3.6 -y --force-yes; + sudo apt install python3.6-dev -y --force-yes; + sudo apt install python3.6-venv -y --force-yes; + sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1 + + sudo cp /usr/lib/python3/dist-packages/apt_pkg.cpython* /usr/lib/python3/dist-packages/apt_pkg.so; + EOH + flags "-x" +end