Skip to content

Commit

Permalink
fix(brew): port the latest formula fixes from the tap repo (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurijmikhalevich authored Dec 22, 2024
1 parent e38ed15 commit 55afa51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions release-utils/homebrew/generate_formula.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@
depends_on "libyaml"
depends_on "numpy"
depends_on "pillow"
depends_on "python@3.13"
depends_on "pytorch"
depends_on "python@3.12"
depends_on "pytorch[email protected]"
depends_on "sentencepiece"
depends_on "torchvision"
depends_on "torchvision[email protected]"
{{ resources }}
def install
virtualenv_install_with_resources
# link dependent virtualenvs to this one
site_packages = Language::Python.site_packages("python3.13")
paths = %w[pytorch torchvision].map do |package_name|
site_packages = Language::Python.site_packages("python3.12")
paths = %w[pytorch[email protected] torchvision[email protected]].map do |package_name|
package = Formula[package_name].opt_libexec
package/site_packages
end
Expand Down

0 comments on commit 55afa51

Please sign in to comment.