@@ -6,7 +6,6 @@ const path = joinpath(@__DIR__, "usr/lib64")
6
6
products = [
7
7
LibraryProduct (path, " libgraphblas" , :libgraphblas ),
8
8
]
9
-
10
9
bin_prefix = " https://raw.githubusercontent.com/abhinavmehndiratta/GB_bin/master"
11
10
12
11
download_info = Dict (
@@ -16,10 +15,16 @@ download_info = Dict(
16
15
Linux (:aarch64 , libc= :glibc , compiler_abi= CompilerABI (:gcc8 )) => (" $bin_prefix /GraphBLAS.v2.3.2.aarch64-linux-gnu-gcc8.tar.gz" , " 13f5d707b547ee74173f324cafc27620c3fea377b5bf80e176c7869aa022ae3c" ),
17
16
)
18
17
19
- unsatisfied = any (! satisfied (p; verbose= verbose) for p in products)
20
- dl_info = choose_download (download_info, platform_key_abi ())
21
- if dl_info === nothing && unsatisfied
22
- error (" Your platform (\" $(Sys. MACHINE) \" , parsed as \" $(triplet (platform_key_abi ())) \" ) is not supported by this package!" )
18
+ if any (! satisfied (p; verbose= verbose) for p in products)
19
+ try
20
+ url, tarball_hash = choose_download (download_info)
21
+ install (url, tarball_hash; prefix= prefix, force= true , verbose= true )
22
+ catch e
23
+ if typeof (e) <: ArgumentError
24
+ error (" Your platform $(Sys. MACHINE) is not supported by this package!" )
25
+ else
26
+ rethrow (e)
27
+ end
28
+ end
29
+ write_deps_file (joinpath (@__DIR__ , " deps.jl" ), products)
23
30
end
24
-
25
- write_deps_file (joinpath (@__DIR__ , " deps.jl" ), products, verbose= verbose)
0 commit comments