Commit a5cf233c authored by Chris Thurber's avatar Chris Thurber Committed by GitHub

Merge pull request #2753 from uberhacker/update-miniconda3-package

Update miniconda3 from 4.4.10 to 4.5.11
parents 9872eb73 7f5921bc
......@@ -3,17 +3,17 @@ require 'package'
class Miniconda3 < Package
description 'Anaconda is the world\'s most popular Python data science platform.'
homepage 'https://conda.io/miniconda.html'
version '4.4.10'
source_url 'https://raw.githubusercontent.com/Anaconda-Platform/anaconda-project/adb2d443b805f2c6c53f989251cc1a2b13fc0d0e/README.md'
source_sha256 'ec0bfe39423ca117ffcd17c154e3e5f6c81a28c4fb14c22dd5033f499a306362'
version '4.5.11'
source_url 'https://raw.githubusercontent.com/conda/conda/4.5.11/README.rst'
source_sha256 '9a5d4e87325a5015bfc00167a0eb41d53e1e7a7f47f2078e50f5fb7ab3082b11'
binary_url ({
i686: 'https://dl.bintray.com/chromebrew/chromebrew/miniconda3-4.4.10-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/miniconda3-4.4.10-chromeos-x86_64.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/miniconda3-4.5.11-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/miniconda3-4.5.11-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
i686: '289962ee7c7456fce196ca70ae983c440dea7b3a259767090f09768e9dc213cb',
x86_64: 'cfe89978fef64fd7d8efe6ad1a1d8b18023ae55f87c0246f82dcc5755881bfe2',
i686: 'f42040d6e439e545bf80a372bd277e0e12370a995425b50cdfdc1fe0fb9dc491',
x86_64: '18f8b5c8e75dc03a441358616eb17c9000425d720df45cb446bbbfe7f84c94f9',
})
depends_on 'python3'
......@@ -21,25 +21,23 @@ class Miniconda3 < Package
def self.install
case ARCH
when 'i686'
system 'curl -Ls -o miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-4.4.10-Linux-x86.sh'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('miniconda.sh') ) == '41f042399fa7c4f2ee5966874e627428669f74fa0037241c2917c4153a50c4cd'
system 'curl -Ls -o miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-4.5.11-Linux-x86.sh'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('miniconda.sh') ) == '5dca8f7aaeeab9506f801c7c8b561a1e7e00aadc3a21008f3c72f82766f6fec6'
when 'x86_64'
system 'curl -Ls -o miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-4.4.10-Linux-x86_64.sh'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('miniconda.sh') ) == '0c2e9b992b2edd87eddf954a96e5feae86dd66d69b1f6706a99bd7fa75e7a891'
else
puts "#{ARCH} architecture not supported.".lightred
system 'curl -Ls -o miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-4.5.11-Linux-x86_64.sh'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('miniconda.sh') ) == 'ea4594241e13a2671c5b158b3b813f0794fe58d514795fbf72a1aad24db918cf'
end
case ARCH
when 'i686','x86_64'
system "bash miniconda.sh -b -p #{CREW_PREFIX}/share/miniconda3"
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.cd("#{CREW_DEST_PREFIX}/bin") do
system "echo '#!/bin/bash' > conda"
system "echo 'cd #{CREW_PREFIX}/share/miniconda3' >> conda"
system "echo 'bin/conda \"\$@\"' >> conda"
system "chmod +x conda"
end
system "mkdir -p #{CREW_DEST_PREFIX}/share"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share"
system "cp -r #{CREW_PREFIX}/share/miniconda3 #{CREW_DEST_PREFIX}/share"
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment