Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions deps/build_ci.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
using Pkg

# Conda.jl fails to precompile when its root environment directory has been removed
# (e.g., by depot clean-up) while its deps.jl still points to it. Pre-create the
# directory so that precompilation succeeds; Conda lazily re-installs itself on use.
let deps_jl = joinpath(first(DEPOT_PATH), "conda", "deps.jl")
if isfile(deps_jl)
mod = Module()
Base.include(mod, deps_jl)
isdefined(mod, :ROOTENV) && mkpath(mod.ROOTENV)
end
end

Pkg.activate(@__DIR__)
Pkg.instantiate()

Expand Down
17 changes: 17 additions & 0 deletions deps/build_local.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# build liboneapi_support with C wrappers for C++ APIs

using Pkg

# Conda.jl fails to precompile when its root environment directory has been removed
# (e.g., by depot clean-up) while its deps.jl still points to it. Pre-create the
# directory so that precompilation succeeds; Conda lazily re-installs itself on use.
let deps_jl = joinpath(first(DEPOT_PATH), "conda", "deps.jl")
if isfile(deps_jl)
mod = Module()
Base.include(mod, deps_jl)
isdefined(mod, :ROOTENV) && mkpath(mod.ROOTENV)
end
end

Pkg.activate(@__DIR__)
Pkg.instantiate()

Expand Down Expand Up @@ -38,6 +50,11 @@ if !isdir(Conda.ROOTENV)
# Same as above
Pkg.build("Conda")
end

# make sure the CA roots used by conda's Python are up-to-date, as outdated certificates
# otherwise result in SSL verification errors when accessing Intel's package repository
Conda.add(["ca-certificates", "certifi"], Conda.ROOTENV)

if !isfile(joinpath(conda_dir, "condarc-julia.yml"))
Conda.create(conda_dir)
# conda#8850
Expand Down
Loading