Skip to content

Commit

Permalink
add versioned numpy to py module path
Browse files Browse the repository at this point in the history
  • Loading branch information
ipatch committed Mar 11, 2024
1 parent a6afdb2 commit 0465e46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Formula/fc_bundle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class FcBundle < Formula
end

depends_on "freecad/freecad/coin3d_py310"
depends_on "freecad/freecad/[email protected]_py310"
depends_on "freecad/freecad/[email protected]_py310"
depends_on "freecad/freecad/[email protected]_py310"

Expand All @@ -32,11 +33,15 @@ def install
coin3d_pivy_pth_contents =
File.read("#{Formula["coin3d_py310"].opt_prefix}/lib/python#{pyver}/coin3d_py310-pivy.pth").strip

numpy_pth_contents =
File.read("#{Formula["[email protected]_py310"].opt_prefix}/lib/python#{pyver}/numpy.pth").strip

site_packages = Language::Python.site_packages("python3.10")
# {shiboken2_pth_contents}
pth_contents = <<~EOS
#{pyside2_pth_contents}
#{coin3d_pivy_pth_contents}
#{numpy_pth_contents}
EOS
(prefix/site_packages/"freecad-py-modules.pth").write pth_contents
end
Expand Down

0 comments on commit 0465e46

Please sign in to comment.