1 cask :v1 => 'python3' do
2 # note: "3" is a trailing version number on the Cask token, which
3 # breaks our own token conventions, for consistency with Homebrew
5 sha256 '5a4edfac31efd4ecd2efb4cb7203c0c36e488f1d0a20755b674b04dcb3c21e1b'
7 url "https://www.python.org/ftp/python/#{version}/python-#{version}-macosx10.6.pkg"
8 homepage 'http://www.python.org/'
11 pkg "python-#{version}-macosx10.6.pkg"
13 uninstall :pkgutil => [
14 "org.python.Python.PythonApplications-#{version.slice(/\d+\.\d+/)}",
15 "org.python.Python.PythonDocumentation-#{version.slice(/\d+\.\d+/)}",
16 "org.python.Python.PythonFramework-#{version.slice(/\d+\.\d+/)}",
17 "org.python.Python.PythonUnixTools-#{version.slice(/\d+\.\d+/)}",
20 "/Library/Receipts/PythonInstallPip-#{version.slice(/\d+\.\d+/)}",
21 "/Applications/Python #{version.slice(/\d+\.\d+/)}",
22 "/Library/Frameworks/Python.Framework/Versions/#{version.slice(/\d+\.\d+/)}",
23 "/Library/Python/#{version.slice(/\d+\.\d+/)}",
25 zap :delete => "~/Library/Python/#{version.slice(/\d+\.\d+/)}"