Skip to content

Commit

Permalink
Check if CONDA_EXE exists CONDA_JL_CONDA_EXE is set during build
Browse files Browse the repository at this point in the history
  • Loading branch information
mkitti committed Jan 15, 2022
1 parent 0756e35 commit c95e1ab
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ CONDA_EXE = get(ENV, "CONDA_JL_CONDA_EXE") do
end
end

if haskey(ENV, "CONDA_JL_CONDA_EXE")
# Check to see if CONDA_EXE is an executable file
if isfile(CONDA_EXE)
if uperm(CONDA_EXE) & 0x01 > 0
@info "Executable conda located." CONDA_EXE
else
error("$CONDA_EXE cannot be executed by the current user.")
end
else
error("$CONDA_EXE does not exist.")
end
end

deps = """
const ROOTENV = "$(escape_string(ROOTENV))"
const MINICONDA_VERSION = "$(escape_string(MINICONDA_VERSION))"
Expand Down

0 comments on commit c95e1ab

Please sign in to comment.