Skip to content

Commit 3f105ab

Browse files
committed
update
1 parent 2a1339d commit 3f105ab

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

deps/build.jl

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
using CondaPkg
22
using PythonCall
33
packages = keys(CondaPkg.current_packages())
4-
if !("rmg" in packages) && !("rmgmolecule" in packages) || !(v"3.7" <= PythonCall.C.python_version() && PythonCall.C.python_version() <= v"3.9")
5-
const Pkg = Base.require(Base.PkgId(Base.UUID("44cfe95a-1eb2-52ea-b672-e2afdf69b78f"), "Pkg"))
4+
if !("rmg" in packages) && !("rmgmolecule" in packages)
5+
CondaPkg.add("rmgmolecule"; version=">=0.3.0", channel="mjohnson541")
6+
end
7+
if !(v"3.7" <= PythonCall.C.python_version() && PythonCall.C.python_version() <= v"3.9")
68
CondaPkg.add("python"; version="3.9")
9+
end
10+
if !("matplotlib" in packages)
711
CondaPkg.add("matplotlib")
12+
end
13+
if !("rdkit" in packages)
814
CondaPkg.add("rdkit")
15+
end
16+
if !("pydot" in packages)
917
CondaPkg.add("pydot")
10-
CondaPkg.add("rmgmolecule"; version=">=0.3.0", channel="mjohnson541")
11-
Pkg.build("PythonCall")
12-
end
18+
end
19+
const Pkg = Base.require(Base.PkgId(Base.UUID("44cfe95a-1eb2-52ea-b672-e2afdf69b78f"), "Pkg"))
20+
Pkg.build("PythonCall")

0 commit comments

Comments
 (0)