Skip to content

Commit

Permalink
1. Detect JULIA_REGISTRYCI_AUTOMERGE var to avoid the automerge failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mzy2240 committed Sep 17, 2022
1 parent 2b31f7b commit 6984899
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/EasySimauto.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ using Conda

export esa, SAW

# install conda package
Conda.pip_interop(true)
Conda.pip("install", "esa")

# https://pypi.org/project/esa/
const esa = PyNULL()
const SAW = PyNULL()

function __init__()
copy!(esa, pyimport("esa"))
copy!(SAW, pyimport("esa").SAW)

function __init__()
if get(ENV, "JULIA_REGISTRYCI_AUTOMERGE", "false") != "true"
# install conda package
Conda.pip_interop(true)
Conda.pip("install", "esa")
copy!(esa, pyimport("esa"))
copy!(SAW, pyimport("esa").SAW)
end
end

end

0 comments on commit 6984899

Please sign in to comment.