Sha256: 3e64f62a62b072267fcde8efaef709ef1f92fa9f407fd59c85c78c95a45859fb

Contents?: true

Size: 730 Bytes

Versions: 11

Compression:

Stored size: 730 Bytes

Contents

directory 'tmp'

execute "download python-#{Daddy::PYTHON_VERSION}" do
  cwd 'tmp'
  command <<-EOF
    curl -O https://www.python.org/ftp/python/#{Daddy::PYTHON_VERSION}/Python-#{Daddy::PYTHON_VERSION}.tar.xz
  EOF
  not_if "sha256sum -c #{::File.join(::File.dirname(__FILE__), "Python-#{Daddy::PYTHON_VERSION}_sha256sum.txt")}"
end

execute "install python-#{Daddy::PYTHON_VERSION}" do
  cwd 'tmp'
  command <<-EOF
    rm -Rf Python-#{Daddy::PYTHON_VERSION}/
    tar Jxf Python-#{Daddy::PYTHON_VERSION}.tar.xz
    pushd Python-#{Daddy::PYTHON_VERSION}
      ./configure --enable-optimizations
      make
      sudo make install
    popd
  EOF
  not_if "which python3 && python3 -V | grep 'Python #{Daddy::PYTHON_VERSION}'" 
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
daddy-0.7.4 itamae/cookbooks/python/install.rb
daddy-0.7.3 itamae/cookbooks/python/install.rb
daddy-0.7.2 itamae/cookbooks/python/install.rb
daddy-0.7.1 itamae/cookbooks/python/install.rb
daddy-0.7.0 itamae/cookbooks/python/install.rb
daddy-0.6.6 itamae/cookbooks/python/install.rb
daddy-0.6.5 itamae/cookbooks/python/install.rb
daddy-0.6.4 itamae/cookbooks/python/install.rb
daddy-0.6.3 itamae/cookbooks/python/install.rb
daddy-0.6.2 itamae/cookbooks/python/install.rb
daddy-0.6.1 itamae/cookbooks/python/install.rb