Skip to content

Commit

Permalink
Make LinearAlgebra a weak dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion authored Aug 29, 2024
1 parent 1dbfa1a commit 11851f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name = "ConstructionBase"
uuid = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
authors = ["Takafumi Arakaki", "Rafael Schouten", "Jan Weidner"]
version = "1.5.7"
version = "1.5.8"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

[weakdeps]
IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

[extensions]
ConstructionBaseIntervalSetsExt = "IntervalSets"
ConstructionBaseLinearAlgebraExt = "LinearAlgebra"
ConstructionBaseStaticArraysExt = "StaticArrays"

[compat]
Expand Down
5 changes: 3 additions & 2 deletions src/ConstructionBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ end
include("nonstandard.jl")
include("functions.jl")

#unconditionally include the extension for now
include("../ext/ConstructionBaseLinearAlgebraExt.jl")
if !isdefined(Base, :get_extension)
include("../ext/ConstructionBaseLinearAlgebraExt.jl")
end

end # module

0 comments on commit 11851f9

Please sign in to comment.