From 8fe06bbc8474aaf0850bed1c03074f39b913b9df Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 17 May 2020 18:25:41 +0000 Subject: [PATCH] Don't install python 2 on Ubuntu 20.04 --- cookbooks/python/recipes/default.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cookbooks/python/recipes/default.rb b/cookbooks/python/recipes/default.rb index 53dc4c59a..00f763bac 100644 --- a/cookbooks/python/recipes/default.rb +++ b/cookbooks/python/recipes/default.rb @@ -17,10 +17,12 @@ # limitations under the License. # -package "python" -package "python-pip" +if node[:lsb][:release].to_f < 20.04 + package "python" + package "python-pip" +end package "python3" package "python3-pip" -package "python-virtualenv" +package "virtualenv" -- 2.39.5