Skip to content

Commit

Permalink
[email protected]: update pip, setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrodrigues committed Jan 30, 2021
1 parent 69c3fcd commit 5fb9da6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class PythonAT39 < Formula
url "https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tar.xz"
sha256 "991c3f8ac97992f3d308fefeb03a64db462574eadbff34ce8bc5bb583d9903ff"
license "Python-2.0"
revision 6
revision 7

livecheck do
url "https://www.python.org/ftp/python/"
Expand Down Expand Up @@ -65,13 +65,13 @@ class PythonAT39 < Formula
link_overwrite "Frameworks/Python.framework/Versions/Current"

resource "setuptools" do
url "https://files.pythonhosted.org/packages/94/23/e9e3d96500c063129a19feb854efbb01e6ffe7d913f1da8176692418ab8e/setuptools-51.1.1.tar.gz"
sha256 "0b43d1e0e0ac1467185581c2ceaf86b5c1a1bc408f8f6407687b0856302d1850"
url "https://files.pythonhosted.org/packages/84/48/5c99d8770fd0a9eb0f82654c3294aad6d0ba9f8600638c2e2ad74f2c5d52/setuptools-52.0.0.tar.gz"
sha256 "fb3a1ee622509550dbf1d419f241296169d7f09cb1eb5b1736f2f10965932b96"
end

resource "pip" do
url "https://files.pythonhosted.org/packages/ca/1e/d91d7aae44d00cd5001957a1473e4e4b7d1d0f072d1af7c34b5899c9ccdf/pip-20.3.3.tar.gz"
sha256 "79c1ac8a9dccbec8752761cb5a2df833224263ca661477a2a9ed03ddf4e0e3ba"
url "https://files.pythonhosted.org/packages/b7/2d/ad02de84a4c9fd3b1958dc9fb72764de1aa2605a9d7e943837be6ad82337/pip-21.0.1.tar.gz"
sha256 "99bbde183ec5ec037318e774b0d8ae0a64352fe53b2c7fd630be1d07e94f41e5"
end

resource "wheel" do
Expand Down Expand Up @@ -324,6 +324,7 @@ def post_install
inreplace lib_cellar/"ensurepip/__init__.py" do |s|
s.gsub! /_SETUPTOOLS_VERSION = .*/, "_SETUPTOOLS_VERSION = \"#{setuptools_version}\""
s.gsub! /_PIP_VERSION = .*/, "_PIP_VERSION = \"#{pip_version}\""
s.gsub! " (\"pip\", _PIP_VERSION, \"py2.py3\"),", " (\"pip\", _PIP_VERSION, \"py3\")," # pip21 is py3 only
end

# Help distutils find brewed stuff when building extensions
Expand Down Expand Up @@ -402,6 +403,9 @@ def caveats
# and it can occur that building sqlite silently fails if OSX's sqlite is used.
system "#{bin}/python#{version.major_minor}", "-c", "import sqlite3"

# check to see if we can create a venv
system "#{bin}/python#{version.major_minor}", "-m", "venv", testpath/"myvenv"

# Check if some other modules import. Then the linked libs are working.
system "#{bin}/python#{version.major_minor}", "-c", "import _gdbm"
system "#{bin}/python#{version.major_minor}", "-c", "import zlib"
Expand Down

0 comments on commit 5fb9da6

Please sign in to comment.