#
# Cookbook:: irrigate-python
# Recipe:: python35
#
# Copyright:: (C) 2017 The Orchard
#
# All rights reserved - Do Not Redistribute
#

include_recipe 'irrigate-python'

case node['platform_family']
when 'rhel'
  if node['platform_version'].start_with?('7')

    packages = %w(
      python35u
      python35u-libs
      python35u-devel
      python35u-pip
    )

    packages.each do |name|
      package name
    end

  end

when 'windows'
  windows_package 'python35' do
    source node['python']['python35_windows_pkg_url']
    checksum node['python']['python35_windows_pkg_sha']
    installer_type :custom
    options '/quiet InstallAllUsers=1 TargetDir=C:\Python35 PrependPath=1'
  end
end
