Skip to content

Commit

Permalink
Add gitpython
Browse files Browse the repository at this point in the history
  • Loading branch information
ageeye committed Nov 5, 2021
1 parent 1c16d45 commit 64ead00
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion Formula/python@3.9.7.rb
Expand Up @@ -70,6 +70,21 @@ class PythonAT397 < Formula
url "https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-1.16.0.tar.gz"
sha256 "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"
end

resource "gitpython" do
url "https://files.pythonhosted.org/packages/34/cc/aaa7a0d066ac9e94fbffa5fcf0738f5742dd7095bdde950bd582fca01f5a/GitPython-3.1.24.tar.gz"
sha256 "df83fdf5e684fef7c6ee2c02fc68a5ceb7e7e759d08b694088d0cacb4eba59e5"
end

resource "gitdb" do
url "https://files.pythonhosted.org/packages/fc/44/64e02ef96f20b347385f0e9c03098659cb5a1285d36c3d17c56e534d80cf/gitdb-4.0.9.tar.gz"
sha256 "bac2fd45c0a1c9cf619e63a90d62bdc63892ef92387424b855792a6cabe789aa"
end

resource "smmap" do
url "https://files.pythonhosted.org/packages/21/2d/39c6c57032f786f1965022563eec60623bb3e1409ade6ad834ff703724f3/smmap-5.0.0.tar.gz"
sha256 "c840e62059cd3be204b0c9c9f74be2c09d5648eddd4580d9314c3ecde0b30936"
end

# Link against libmpdec.so.3, update for mpdecimal.h symbol cleanup.
patch do
Expand Down Expand Up @@ -266,7 +281,7 @@ def install

# Replace bundled setuptools/pip with our own.
rm Dir["#{lib_cellar}/ensurepip/_bundled/{setuptools,pip}-*.whl"]
%w[setuptools pip].each do |r|
%w[setuptools pip gitpython gitdb smmap].each do |r|
resource(r).stage do
system whl_build/"bin/pip3", "wheel", *common_pip_args,
"--wheel-dir=#{lib_cellar}/ensurepip/_bundled",
Expand Down Expand Up @@ -334,6 +349,9 @@ def post_install
"--isolated",
"--target=#{site_packages}",
bundled/"setuptools-#{resource("setuptools").version}-py3-none-any.whl",
bundled/"gitpython-#{resource("gitpython").version}-py3-none-any.whl",
bundled/"gitdb-#{resource("gitdb").version}-py3-none-any.whl",
bundled/"smmap-#{resource("smmap").version}-py3-none-any.whl",
bundled/"pip-#{resource("pip").version}-py3-none-any.whl",
libexec/"wheel-#{resource("wheel").version}-py2.py3-none-any.whl"

Expand Down

0 comments on commit 64ead00

Please sign in to comment.