python3: pip, setuptools, pkgconfig linkage.

Bumped Pip, Bumped Setuptools, Linked the pkgconfig files so they're
available automatically.

Closes Homebrew/homebrew#38121

Closes Homebrew/homebrew#39123.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
This commit is contained in:
Dominyk Tiller 2015-04-27 23:17:00 +01:00 committed by Tim D. Smith
parent 76a1813c08
commit add97bd360

View file

@ -1,7 +1,7 @@
class Python3 < Formula
homepage "https://www.python.org/"
url "https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz"
sha1 "7ca5cd664598bea96eec105aa6453223bb6b4456"
sha256 "b5b3963533768d5fc325a4d7a6bd6f666726002d696f1d399ec06b043ea996b8"
bottle do
revision 8
@ -36,13 +36,13 @@ class Python3 < Formula
skip_clean "bin/easy_install3", "bin/easy_install-3.4", "bin/easy_install-3.5"
resource "setuptools" do
url "https://pypi.python.org/packages/source/s/setuptools/setuptools-15.0.tar.gz"
sha256 "718d13adf87f99a45835bb20e0a1c4c036de644cd32b3f112639403aa04ebeb5"
url "https://pypi.python.org/packages/source/s/setuptools/setuptools-15.2.tar.gz"
sha256 "381e78471fb0eff89c4b1a219e8739f48dd87c76ad2d3a790010ca3a62ee29a4"
end
resource "pip" do
url "https://pypi.python.org/packages/source/p/pip/pip-6.1.0.tar.gz"
sha256 "89f120e2ab3d25ab70c36eb28ad4f280fc9ba71736e74d3055f609c1f9173768"
url "https://pypi.python.org/packages/source/p/pip/pip-6.1.1.tar.gz"
sha256 "89f3b626d225e08e7f20d85044afa40f612eb3284484169813dc2d0631f2a556"
end
# Homebrew's tcl-tk is built in a standard unix fashion (due to link errors)
@ -142,6 +142,9 @@ class Python3 < Formula
["Headers", "Python", "Resources"].each { |f| rm(prefix/"Frameworks/Python.framework/#{f}") }
rm prefix/"Frameworks/Python.framework/Versions/Current"
# Symlink the pkgconfig files into HOMEBREW_PREFIX so they're accessible.
(lib/"pkgconfig").install_symlink Dir["#{frameworks}/Python.framework/Versions/#{xy}/lib/pkgconfig/*"]
# Remove 2to3 because python2 also installs it
rm bin/"2to3"