Skip to content

Commit d36a8cb

Browse files
committed
Check if rmg/rmgmolecule are in env rather than try-catch
1 parent 98eec75 commit d36a8cb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

deps/build.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ if PyCall.pyversion.major != 3 || PyCall.pyversion.minor != 7
1313
end
1414
Conda.add("nomkl")
1515
Conda.add("numpy")
16-
try
17-
pyimport("rmgpy")
18-
catch e
16+
if (not Conda.exists("rmg")) && (not Conda.exists("rmgmolecule"))
1917
Conda.add_channel("hwpang")
2018
Conda.add("rmgmolecule")
2119
end

0 commit comments

Comments
 (0)