Sha256: e57faa583d1d5e07913bc9b66cd25e8f91ed8e19cee1b549b240f6237958924b
Contents?: true
Size: 752 Bytes
Versions: 25
Compression:
Stored size: 752 Bytes
Contents
require 'daddy/itamae' version = ENV['PYTHON_VERSION'] || ItamaePluginRecipeDaddy::PYTHON_VERSION execute "download python-#{version}" do cwd '/var/daddy/tmp' command <<-EOF rm -f Python-#{version}.tar.xz wget https://www.python.org/ftp/python/#{version}/Python-#{version}.tar.xz EOF not_if "sha256sum -c #{::File.join(::File.dirname(__FILE__), "Python-#{version}_sha256sum.txt")}" end execute "install python-#{version}" do cwd '/var/daddy/tmp' command <<-EOF rm -Rf Python-#{version}/ tar Jxf Python-#{version}.tar.xz pushd Python-#{version} ./configure --enable-optimizations --with-lto make sudo make install popd EOF not_if "which python3 && python3 -V | grep 'Python #{version}'" end
Version data entries
25 entries across 25 versions & 1 rubygems