From 5c6c865b444719bb386125fd7d5c2cb0c873a7c3 Mon Sep 17 00:00:00 2001 From: quinnj Date: Fri, 16 Dec 2016 14:24:06 -0700 Subject: [PATCH] Initial setup to move modules out of Base to a stdlib --- base/exports.jl | 3 --- base/initdefs.jl | 1 + base/sysimg.jl | 9 +++++---- base/quadgk.jl => stdlib/QuadGK.jl | 0 4 files changed, 6 insertions(+), 7 deletions(-) rename base/quadgk.jl => stdlib/QuadGK.jl (100%) diff --git a/base/exports.jl b/base/exports.jl index 81e68387f2c2b..dacafa30c6487 100644 --- a/base/exports.jl +++ b/base/exports.jl @@ -954,9 +954,6 @@ export rfft, xcorr, -# numerical integration - quadgk, - # iteration done, next, diff --git a/base/initdefs.jl b/base/initdefs.jl index 5c44c62f32f2e..3b44d2719e83d 100644 --- a/base/initdefs.jl +++ b/base/initdefs.jl @@ -42,6 +42,7 @@ function init_load_path() end push!(LOAD_PATH, abspath(JULIA_HOME, "..", "local", "share", "julia", "site", vers)) push!(LOAD_PATH, abspath(JULIA_HOME, "..", "share", "julia", "site", vers)) + push!(LOAD_PATH, abspath(JULIA_HOME, "..", "..", "stdlib")) #push!(LOAD_CACHE_PATH, abspath(JULIA_HOME, "..", "lib", "julia")) #TODO: add a builtin location? end diff --git a/base/sysimg.jl b/base/sysimg.jl index 7540c9b9ff138..1eca15076760b 100644 --- a/base/sysimg.jl +++ b/base/sysimg.jl @@ -329,10 +329,6 @@ importall .DFT include("dsp.jl") importall .DSP -# Numerical integration -include("quadgk.jl") -importall .QuadGK - # Fast math include("fastmath.jl") importall .FastMath @@ -397,4 +393,9 @@ end # baremodule Base using Base importall Base.Operators +# stdlib packages +# Numerical integration +Base.include("../stdlib/QuadGK.jl") +using QuadGK + Base.isfile("userimg.jl") && Base.include("userimg.jl") diff --git a/base/quadgk.jl b/stdlib/QuadGK.jl similarity index 100% rename from base/quadgk.jl rename to stdlib/QuadGK.jl