@@ -8,12 +8,12 @@ class Archgw < Formula
88 license "Apache-2.0"
99
1010 bottle do
11- rebuild 1
12- sha256 cellar : :any , arm64_tahoe : "c10db98bb7361677d43a4502db9f2a23877a163e92697a526c18dc9a6b23833e "
13- sha256 cellar : :any , arm64_sequoia : "49ba8976c244113c500931442f9754c1e149d74f72121d7d13492f0770f66129 "
14- sha256 cellar : :any , arm64_sonoma : "245bde81d1dd6316fbe1b332c21e52de54d72504d45e3b7148abda2402694295 "
15- sha256 cellar : :any , sonoma : "d7ba09267c8c4291e3d06827101b06d5d2077b00c7d3c8dfa20c414c5a0daaa0 "
16- sha256 cellar : :any_skip_relocation , x86_64_linux : "a642bfb67f3d57a357bd037915d1ace73e08d6fd748f2483d1c7ecedaaf3e419 "
11+ rebuild 2
12+ sha256 cellar : :any , arm64_tahoe : "e5c84edea9bf01e6b3940eb1dc7e35a023e408f0f97632ba405d415198f0182f "
13+ sha256 cellar : :any , arm64_sequoia : "bc16076639115dd44dab5600acb31d5c215abe8d1d7a7bc110c8f8029d1b3275 "
14+ sha256 cellar : :any , arm64_sonoma : "8cb76c7b2b50d8925888cb8ca4474910058609c48ef683cb9cd8b583bde77fd6 "
15+ sha256 cellar : :any , sonoma : "11a828235b4a0a957d336820aec5964e56ba6d1a8537f4704a02b1eeb5134bb2 "
16+ sha256 cellar : :any_skip_relocation , x86_64_linux : "b2ebe5a0a8f32d3446f407506fad2b56cb1985b7dd1670992a91e545e76bb06d "
1717 end
1818
1919 depends_on "rust" => :build # for hf-xet, jitter and safetensors
@@ -332,7 +332,17 @@ def install
332332 # Remove after https://github.com/pypa/hatch/pull/1999 is released.
333333 ENV [ "SOURCE_DATE_EPOCH" ] = "1451574000"
334334
335- venv = virtualenv_install_with_resources
335+ venv = virtualenv_install_with_resources ( without : "hf-xet" )
336+
337+ resource ( "hf-xet" ) . stage do
338+ if ENV . effective_arch == :armv8
339+ # Disable sha2-asm which requires a minimum of -march=armv8-a+crypto
340+ inreplace "data/Cargo.toml" ,
341+ 'sha2 = { workspace = true, features = ["asm"] }' ,
342+ "sha2 = { workspace = true }"
343+ end
344+ venv . pip_install Pathname . pwd
345+ end
336346
337347 # NOTE: This is an exception to our usual policy as building `pytorch` is complicated
338348 site_packages = Language ::Python . site_packages ( venv . root /"bin/python3" )
0 commit comments