2015-12-18 09:15:28 +08:00
|
|
|
cask 'python3' do
|
2014-11-29 03:36:16 +08:00
|
|
|
# note: "3" is a trailing version number on the Cask token, which
|
|
|
|
# breaks our own token conventions, for consistency with Homebrew
|
2016-01-04 01:02:41 +08:00
|
|
|
version '3.5.1'
|
|
|
|
sha256 '1f3c070b9005e894eddc23120ddf1d2c5f82977ebb43e1a89ca4a2fbfac8caf4'
|
2014-11-14 23:15:52 +08:00
|
|
|
|
|
|
|
url "https://www.python.org/ftp/python/#{version}/python-#{version}-macosx10.6.pkg"
|
2015-04-25 22:31:23 +08:00
|
|
|
name 'Python'
|
2015-06-05 19:46:54 +08:00
|
|
|
homepage 'https://www.python.org/'
|
2014-11-14 23:15:52 +08:00
|
|
|
license :oss
|
|
|
|
|
|
|
|
pkg "python-#{version}-macosx10.6.pkg"
|
|
|
|
|
|
|
|
uninstall :pkgutil => [
|
|
|
|
"org.python.Python.PythonApplications-#{version.slice(/\d+\.\d+/)}",
|
|
|
|
"org.python.Python.PythonDocumentation-#{version.slice(/\d+\.\d+/)}",
|
|
|
|
"org.python.Python.PythonFramework-#{version.slice(/\d+\.\d+/)}",
|
|
|
|
"org.python.Python.PythonUnixTools-#{version.slice(/\d+\.\d+/)}",
|
|
|
|
],
|
|
|
|
:delete => [
|
|
|
|
"/Library/Receipts/PythonInstallPip-#{version.slice(/\d+\.\d+/)}",
|
|
|
|
"/Applications/Python #{version.slice(/\d+\.\d+/)}",
|
|
|
|
"/Library/Frameworks/Python.Framework/Versions/#{version.slice(/\d+\.\d+/)}",
|
|
|
|
"/Library/Python/#{version.slice(/\d+\.\d+/)}",
|
|
|
|
]
|
|
|
|
zap :delete => "~/Library/Python/#{version.slice(/\d+\.\d+/)}"
|
|
|
|
end
|