Skip to content

Commit 61ceefa

Browse files
committed
torchvision: migrate to [email protected]
1 parent d39cd20 commit 61ceefa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Formula/t/torchvision.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class Torchvision < Formula
66
url "https://github.com/pytorch/vision/archive/refs/tags/v0.24.0.tar.gz"
77
sha256 "f799cdd1d67a3edbcdc6af8fb416fe1b019b512fb426c0314302cd81518a0095"
88
license "BSD-3-Clause"
9+
revision 1
910

1011
livecheck do
1112
url :stable
@@ -25,7 +26,7 @@ class Torchvision < Formula
2526

2627
depends_on "cmake" => :build
2728
depends_on "ninja" => :build
28-
depends_on "python@3.13" => [:build, :test]
29+
depends_on "python@3.14" => [:build, :test]
2930
depends_on "jpeg-turbo"
3031
depends_on "libpng"
3132
depends_on "numpy"
@@ -48,14 +49,14 @@ def install
4849
'jpeg_found, jpeg_include_dir, jpeg_library_dir = find_library(header="jpeglib.h")',
4950
"jpeg_found, jpeg_include_dir, jpeg_library_dir = True, '#{jpeg.include}', '#{jpeg.lib}'"
5051

51-
python3 = "python3.13"
52+
python3 = "python3.14"
5253
venv = virtualenv_create(libexec, python3)
5354
venv.pip_install resources
5455

5556
# We depend on pytorch, but that's a separate formula, so install a `.pth` file to link them.
5657
# This needs to happen _before_ we try to install torchvision.
5758
# NOTE: This is an exception to our usual policy as building `pytorch` is complicated
58-
site_packages = Language::Python.site_packages(python3)
59+
site_packages = Language::Python.site_packages(venv.root/"bin/python3")
5960
pth_contents = "import site; site.addsitedir('#{Formula["pytorch"].opt_libexec/site_packages}')\n"
6061
(venv.site_packages/"homebrew-pytorch.pth").write pth_contents
6162

0 commit comments

Comments
 (0)