2015-12-18 09:15:28 +08:00
|
|
|
cask 'anaconda' do
|
2018-10-03 20:32:52 +08:00
|
|
|
version '5.3.0'
|
|
|
|
sha256 'bc073b6e6d3b2ef29d01a2caf1de7c206c95968231ef0492d958eae1a314b4e9'
|
2015-11-16 01:04:24 +08:00
|
|
|
|
2018-06-01 07:44:39 +08:00
|
|
|
url "https://repo.anaconda.com/archive/Anaconda3-#{version}-MacOSX-x86_64.sh"
|
2015-12-25 03:04:00 +08:00
|
|
|
name 'Continuum Analytics Anaconda'
|
2018-06-01 07:44:39 +08:00
|
|
|
homepage 'https://www.anaconda.com/'
|
2015-11-16 01:04:24 +08:00
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
depends_on macos: '>= :lion'
|
|
|
|
container type: :naked
|
2015-11-16 01:04:24 +08:00
|
|
|
|
2017-04-11 01:35:40 +08:00
|
|
|
installer script: {
|
|
|
|
executable: "Anaconda3-#{version}-MacOSX-x86_64.sh",
|
2017-04-22 07:27:31 +08:00
|
|
|
args: ['-b', '-p', "#{HOMEBREW_PREFIX}/anaconda3"],
|
|
|
|
sudo: true,
|
2017-04-11 01:35:40 +08:00
|
|
|
}
|
2015-11-16 01:04:24 +08:00
|
|
|
|
2017-05-12 15:01:05 +08:00
|
|
|
postflight do
|
|
|
|
set_ownership "#{HOMEBREW_PREFIX}/anaconda3"
|
|
|
|
end
|
|
|
|
|
2017-06-06 09:46:49 +08:00
|
|
|
uninstall delete: [
|
|
|
|
"#{HOMEBREW_PREFIX}/anaconda3",
|
|
|
|
'/Applications/Anaconda-Navigator.app',
|
|
|
|
]
|
2016-01-04 17:06:21 +08:00
|
|
|
|
2017-11-18 17:35:03 +08:00
|
|
|
zap trash: [
|
|
|
|
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.continuum.io.sfl*',
|
|
|
|
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.continuum.python.sfl*',
|
2018-10-12 19:36:32 +08:00
|
|
|
'~/.anaconda',
|
|
|
|
'~/.conda',
|
|
|
|
'~/.condarc',
|
2017-11-18 17:35:03 +08:00
|
|
|
]
|
2016-11-07 18:56:14 +08:00
|
|
|
|
2015-11-16 01:04:24 +08:00
|
|
|
caveats do
|
2017-04-22 07:27:31 +08:00
|
|
|
path_environment_variable "#{HOMEBREW_PREFIX}/anaconda3/bin"
|
|
|
|
files_in_usr_local
|
2015-11-16 01:04:24 +08:00
|
|
|
end
|
|
|
|
end
|