From b63f7380cadf853165dbc6d545c7dc5751707a87 Mon Sep 17 00:00:00 2001 From: Chengyu HAN Date: Tue, 6 Feb 2024 12:02:35 -0600 Subject: [PATCH] Work without stdlib `SparseArrays.jl` --- src/Statistics.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Statistics.jl b/src/Statistics.jl index 376fb94d..e9cefffe 100644 --- a/src/Statistics.jl +++ b/src/Statistics.jl @@ -1094,7 +1094,7 @@ quantile(v::AbstractVector, p; sorted::Bool=false, alpha::Real=1.0, beta::Real=a quantile!(sorted ? v : Base.copymutable(v), p; sorted=sorted, alpha=alpha, beta=beta) # If package extensions are not supported in this Julia version -if !isdefined(Base, :get_extension) +if !isdefined(Base, :get_extension) && Base.USE_GPL_LIBS include("../ext/SparseArraysExt.jl") end