From 756d31eb1cb6f9a75d97d46c004660e8d6aa3148 Mon Sep 17 00:00:00 2001 From: Amos Welike Date: Wed, 11 Jan 2023 15:54:29 +0300 Subject: [PATCH 1/7] 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 2/7] 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 3/7] 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 4/7] 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 5/7] 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 6/7] 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 7/7] 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