Skip to content

Commit 23d6581

Browse files
authored
Remove VERSION checks because the minimum Julia version is v1.10 (#305)
1 parent c1f02f1 commit 23d6581

File tree

4 files changed

+5
-16
lines changed

4 files changed

+5
-16
lines changed

deps/build.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
using Libdl
77

8-
if VERSION >= v"1.3" && !haskey(ENV, "SCIPOPTDIR") && !Sys.iswindows()
8+
if !haskey(ENV, "SCIPOPTDIR") && !Sys.iswindows()
99
# Skip build in favor of SCIP_jll
1010
exit()
1111
end

src/init.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ else
2525
end
2626

2727
function __init__()
28-
if VERSION >= v"1.9"
29-
config = LinearAlgebra.BLAS.lbt_get_config()
30-
if !any(lib -> lib.interface == :lp64, config.loaded_libs)
31-
LinearAlgebra.BLAS.lbt_forward(OpenBLAS32_jll.libopenblas_path)
32-
end
28+
config = LinearAlgebra.BLAS.lbt_get_config()
29+
if !any(lib -> lib.interface == :lp64, config.loaded_libs)
30+
LinearAlgebra.BLAS.lbt_forward(OpenBLAS32_jll.libopenblas_path)
3331
end
3432
major = SCIPmajorVersion()
3533
minor = SCIPminorVersion()
@@ -43,4 +41,5 @@ function __init__()
4341
"supported are $required up to (excluding) $upperbound."
4442
)
4543
end
44+
return
4645
end

test/MINLPTests/run_minlptests.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55

66
using MINLPTests, JuMP, SCIP, Test
77

8-
@static if VERSION >= v"1.7"
9-
import LinearAlgebra, OpenBLAS32_jll
10-
LinearAlgebra.BLAS.lbt_forward(OpenBLAS32_jll.libopenblas_path)
11-
end
12-
138
const OPTIMIZER =
149
JuMP.optimizer_with_attributes(SCIP.Optimizer, "display/verblevel" => 0)
1510
const OBJTOL = 1e-4

test/runtests.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ using SCIP
88
using SCIP_jll
99
using SCIP_PaPILO_jll
1010

11-
@static if VERSION >= v"1.7"
12-
import LinearAlgebra, OpenBLAS32_jll
13-
LinearAlgebra.BLAS.lbt_forward(OpenBLAS32_jll.libopenblas_path)
14-
end
15-
1611
@show(@eval(SCIP, libscip) == SCIP_jll.libscip)
1712
@show(
1813
SCIP_PaPILO_jll.is_available() &&

0 commit comments

Comments
 (0)