Skip to content

Commit 72bb19d

Browse files
authored
Merge pull request #95 from devmotion/dw/linalg
Make LinearAlgebra a weak dependency
2 parents 1dbfa1a + 11851f9 commit 72bb19d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Project.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
name = "ConstructionBase"
22
uuid = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
33
authors = ["Takafumi Arakaki", "Rafael Schouten", "Jan Weidner"]
4-
version = "1.5.7"
4+
version = "1.5.8"
55

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

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

1314
[extensions]
1415
ConstructionBaseIntervalSetsExt = "IntervalSets"
16+
ConstructionBaseLinearAlgebraExt = "LinearAlgebra"
1517
ConstructionBaseStaticArraysExt = "StaticArrays"
1618

1719
[compat]

src/ConstructionBase.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ end
211211
include("nonstandard.jl")
212212
include("functions.jl")
213213

214-
#unconditionally include the extension for now
215-
include("../ext/ConstructionBaseLinearAlgebraExt.jl")
214+
if !isdefined(Base, :get_extension)
215+
include("../ext/ConstructionBaseLinearAlgebraExt.jl")
216+
end
216217

217218
end # module

0 commit comments

Comments
 (0)