]> git.openstreetmap.org Git - chef.git/commitdiff
Don't install python 2 on Ubuntu 20.04
authorTom Hughes <tom@compton.nu>
Sun, 17 May 2020 18:25:41 +0000 (18:25 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 17 May 2020 18:26:34 +0000 (19:26 +0100)
cookbooks/python/recipes/default.rb

index 53dc4c59ab29de609ab792bffd52891667c59599..00f763bac9a0b7a5c084ac3f98e15900f4e0b908 100644 (file)
 # 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"