From 28baa28bf4db0d8096e0209f184073f43f5ef806 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas Date: Sun, 27 Jul 2025 07:29:10 -0400 Subject: [PATCH 1/3] Remove Julia v1.9 get_extension compatibility code Since all SciML packages now require Julia v1.10+, we can remove the compatibility checks for `isdefined(Base, :get_extension)` as package extensions are available in all supported Julia versions. This removes unnecessary version checks in extension loading code. --- ext/IntegralsFastGaussQuadratureExt.jl | 1 - ext/IntegralsForwardDiffExt.jl | 2 +- ext/IntegralsZygoteExt.jl | 1 - src/Integrals.jl | 4 ---- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/ext/IntegralsFastGaussQuadratureExt.jl b/ext/IntegralsFastGaussQuadratureExt.jl index 54058525..5d402fcd 100644 --- a/ext/IntegralsFastGaussQuadratureExt.jl +++ b/ext/IntegralsFastGaussQuadratureExt.jl @@ -1,6 +1,5 @@ module IntegralsFastGaussQuadratureExt using Integrals -if isdefined(Base, :get_extension) import FastGaussQuadrature import FastGaussQuadrature: gausslegendre # and eventually gausschebyshev, etc. diff --git a/ext/IntegralsForwardDiffExt.jl b/ext/IntegralsForwardDiffExt.jl index f09309cf..1775048e 100644 --- a/ext/IntegralsForwardDiffExt.jl +++ b/ext/IntegralsForwardDiffExt.jl @@ -1,6 +1,6 @@ module IntegralsForwardDiffExt using Integrals -isdefined(Base, :get_extension) ? (using ForwardDiff) : (using ..ForwardDiff) +using ForwardDiff ### Forward-Mode AD Intercepts function Integrals._evaluate!(f, y, u, diff --git a/ext/IntegralsZygoteExt.jl b/ext/IntegralsZygoteExt.jl index ea4c55b9..3d998460 100644 --- a/ext/IntegralsZygoteExt.jl +++ b/ext/IntegralsZygoteExt.jl @@ -1,7 +1,6 @@ module IntegralsZygoteExt using LinearAlgebra: dot using Integrals -if isdefined(Base, :get_extension) using Zygote import ChainRulesCore import ChainRulesCore: Tangent, NoTangent, ProjectTo diff --git a/src/Integrals.jl b/src/Integrals.jl index 4ea9e5c5..d49e065a 100644 --- a/src/Integrals.jl +++ b/src/Integrals.jl @@ -1,9 +1,5 @@ module Integrals -if !isdefined(Base, :get_extension) - using Requires -end - using Reexport, MonteCarloIntegration, QuadGK, HCubature @reexport using SciMLBase using LinearAlgebra From a4b99ece3c5895a69b3c934d00e248bc469bc3cd Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sun, 27 Jul 2025 07:45:37 -0400 Subject: [PATCH 2/3] Update IntegralsFastGaussQuadratureExt.jl --- ext/IntegralsFastGaussQuadratureExt.jl | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ext/IntegralsFastGaussQuadratureExt.jl b/ext/IntegralsFastGaussQuadratureExt.jl index 5d402fcd..bb08952c 100644 --- a/ext/IntegralsFastGaussQuadratureExt.jl +++ b/ext/IntegralsFastGaussQuadratureExt.jl @@ -1,12 +1,8 @@ module IntegralsFastGaussQuadratureExt using Integrals - import FastGaussQuadrature - import FastGaussQuadrature: gausslegendre - # and eventually gausschebyshev, etc. -else - import ..FastGaussQuadrature - import ..FastGaussQuadrature: gausslegendre -end +import FastGaussQuadrature +import FastGaussQuadrature: gausslegendre + using LinearAlgebra Integrals.gausslegendre(n) = FastGaussQuadrature.gausslegendre(n) From 64b3478622cfd773dc6070a6c0ec185f469b0086 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sun, 27 Jul 2025 07:45:51 -0400 Subject: [PATCH 3/3] Update IntegralsZygoteExt.jl --- ext/IntegralsZygoteExt.jl | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ext/IntegralsZygoteExt.jl b/ext/IntegralsZygoteExt.jl index 3d998460..a6b270ef 100644 --- a/ext/IntegralsZygoteExt.jl +++ b/ext/IntegralsZygoteExt.jl @@ -1,14 +1,10 @@ module IntegralsZygoteExt using LinearAlgebra: dot using Integrals - using Zygote - import ChainRulesCore - import ChainRulesCore: Tangent, NoTangent, ProjectTo -else - using ..Zygote - import ..Zygote.ChainRulesCore - import ..Zygote.ChainRulesCore: Tangent, NoTangent, ProjectTo -end +using Zygote +import ChainRulesCore +import ChainRulesCore: Tangent, NoTangent, ProjectTo + ChainRulesCore.@non_differentiable Integrals.checkkwargs(kwargs...) ChainRulesCore.@non_differentiable Integrals.isinplace(f, args...) # fixes #99 ChainRulesCore.@non_differentiable Integrals.init_cacheval(alg, prob)