Skip to content

Commit

Permalink
fc_bundle_py312: update formula to include missing python modules for…
Browse files Browse the repository at this point in the history
… unit testing
  • Loading branch information
ipatch committed Jan 6, 2025
1 parent c879aca commit 546e6ae
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Formula/fc_bundle_py312.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,28 @@ class FcBundlePy312 < Formula
depends_on "freecad/freecad/[email protected]_py312"
depends_on "freecad/freecad/pybind11_py312"
depends_on "freecad/freecad/[email protected]_py312" # pyside includes the shiboken2 module as well
depends_on "libyaml" # reqd by pyyaml

resource "six" do
url "https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-1.16.0.tar.gz"
sha256 "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"
end

resource "matplotlib" do
url "https://files.pythonhosted.org/packages/68/dd/fa2e1a45fce2d09f4aea3cee169760e672c8262325aa5796c49d543dc7e6/matplotlib-3.10.0.tar.gz"
sha256 "b886d02a581b96704c9d1ffe55709e49b4d2d52709ccebc4be42db856e511278"
end

resource "ply" do
url "https://files.pythonhosted.org/packages/e5/69/882ee5c9d017149285cab114ebeab373308ef0f874fcdac9beb90e0ac4da/ply-3.11.tar.gz"
sha256 "00c7c1aaa88358b9c765b6d3000c6eec0ba42abca5351b095321aef446081da3"
end

resource "pyyaml" do
url "https://files.pythonhosted.org/packages/54/ed/79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-6.0.2.tar.gz"
sha256 "d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e"
end

def install
# explicitly set python version
pyver = "3.12"
Expand All @@ -45,6 +61,18 @@ def install
system venv_pip, "install", "."
end

resource("matplotlib").stage do
system venv_pip, "install", "."
end

resource("ply").stage do
system venv_pip, "install", "."
end

resource("pyyaml").stage do
system venv_pip, "install", "."
end

# Example: Read the contents of the .pth file into a variable
# shiboken2_pth_contents = \
# File.read("#{Formula["[email protected]"].opt_prefix}/lib/python#{pyver}/site-packages/shiboken2.pth").strip
Expand Down

0 comments on commit 546e6ae

Please sign in to comment.