Skip to content

Commit db8dae7

Browse files
committed
properly detect if rmg or rmgmolecule are in env
1 parent 2502d85 commit db8dae7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

deps/build.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ if PyCall.pyversion.major != 3 || PyCall.pyversion.minor != 7
1313
end
1414
Conda.add("nomkl")
1515
Conda.add("numpy")
16-
if (!Conda.exists("rmg")) && (!Conda.exists("rmgmolecule")) #if rmg and rmgmolecule not present install molecule
16+
packages = Conda._installed_packages()
17+
if !("rmg" in packages) && !("rmgmolecule" in packages) #if rmg and rmgmolecule not present install molecule
1718
Conda.add_channel("hwpang")
1819
Conda.add("rmgmolecule")
1920
end

0 commit comments

Comments
 (0)