Remove html docs options from python and python3

The tarballs are updated frequently, so the checksums are not stable.
Since documentation updates happen more often than python releases, the
installed docs will become stale, so it doesn't make sense to tie them
to the installed python in this way. Users are better off viewing the
documentation online or downloading the tarballs manually if an offline
copy is required.

Closes Homebrew/homebrew#31088.
Closes Homebrew/homebrew#31127.

Squashed commit of the following:

commit 78c5fba482aa827fe0168de04412a1100219cae6
Author: Jack Nagel <jacknagel@gmail.com>
Date:   Sun Jul 27 01:15:05 2014 -0500

    Revert "python3: add with-docs option"

    This reverts commit 0005b34ed3276f71f0cc89806423c5c7b6374034.

commit 8abfb19d51583fa4370eea9b8e33355da830a104
Author: Jack Nagel <jacknagel@gmail.com>
Date:   Sun Jul 27 01:14:57 2014 -0500

    Revert "python: add --with-docs option"

    This reverts commit 97cef6041f78e2d8a9dd6f36725ddc056a9b6e2c.

commit ada80382f347641ed6b947210d94249d114f9604
Author: Jack Nagel <jacknagel@gmail.com>
Date:   Sun Jul 27 01:14:45 2014 -0500

    Revert "python: fix docs checksum"

    This reverts commit c0bffbcdc9d9f729b382bd3bfd4cef5fc66fcc19.
This commit is contained in:
Jack Nagel 2014-07-27 01:16:05 -05:00
parent 4dccfb9fe3
commit 0579f1b497
2 changed files with 0 additions and 16 deletions

View file

@ -17,7 +17,6 @@ class Python < Formula
option "with-brewed-tk", "Use Homebrew's Tk (has optional Cocoa and threads support)"
option "with-poll", "Enable select.poll, which is not fully implemented on OS X (http://bugs.python.org/issue5154)"
option "with-dtrace", "Experimental DTrace support (http://bugs.python.org/issue13405)"
option "with-docs", "Install HTML documentation"
depends_on "pkg-config" => :build
depends_on "readline" => :recommended
@ -30,11 +29,6 @@ class Python < Formula
skip_clean "bin/pip", "bin/pip-2.7"
skip_clean "bin/easy_install", "bin/easy_install-2.7"
resource "docs" do
url "https://docs.python.org/2/archives/python-2.7.8-docs-html.tar.bz2"
sha1 "ba0c2ce0ddf0773306ed859262f405de61e486a6"
end
resource "setuptools" do
url "https://pypi.python.org/packages/source/s/setuptools/setuptools-5.3.tar.gz"
sha1 "da2da9324a539029ebea602120afcb8cfd24ddf6"
@ -149,8 +143,6 @@ class Python < Formula
# Remove the site-packages that Python created in its Cellar.
site_packages_cellar.rmtree
doc.install resource('docs') if build.with? "docs"
(libexec/'setuptools').install resource('setuptools')
(libexec/'pip').install resource('pip')
end

View file

@ -18,7 +18,6 @@ class Python3 < Formula
option :universal
option 'quicktest', 'Run `make quicktest` after the build'
option 'with-brewed-tk', "Use Homebrew's Tk (has optional Cocoa and threads support)"
option "with-docs", "Install HTML documentation"
depends_on 'pkg-config' => :build
depends_on 'readline' => :recommended
@ -32,11 +31,6 @@ class Python3 < Formula
skip_clean "bin/pip3", "bin/pip-#{VER}"
skip_clean "bin/easy_install3", "bin/easy_install-#{VER}"
resource "docs" do
url "https://docs.python.org/3/archives/python-3.4.1-docs-html.tar.bz2"
sha1 "7d76e33a98bcd7c24790309780171c75988ad82a"
end
patch :DATA if build.with? 'brewed-tk'
def site_packages_cellar
@ -136,8 +130,6 @@ class Python3 < Formula
# Remove the site-packages that Python created in its Cellar.
site_packages_cellar.rmtree
doc.install resource("docs") if build.with? "docs"
end
def post_install