Skip to content

Commit 5154019

Browse files
committed
Refactor
1 parent 685b56a commit 5154019

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

deps/build.jl

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,15 @@ if !("rmg" in packages) && !("rmgmolecule" in packages)
55
CondaPkg.add_channel("defaults")
66
CondaPkg.add_channel("conda-forge")
77
CondaPkg.add_channel("mjohnson541")
8+
9+
if !(v"3.7" <= PythonCall.C.python_version() && PythonCall.C.python_version() <= v"3.9")
10+
CondaPkg.add("python"; version="3.9")
11+
end
812
CondaPkg.add("rmgmolecule"; version=">=0.3.0")
9-
end
10-
if !(v"3.7" <= PythonCall.C.python_version() && PythonCall.C.python_version() <= v"3.9")
11-
CondaPkg.add("python"; version="3.9")
12-
end
13-
if !("matplotlib" in packages)
1413
CondaPkg.add("matplotlib")
15-
end
16-
if !("rdkit" in packages)
1714
CondaPkg.add("rdkit")
18-
end
19-
if !("pydot" in packages)
2015
CondaPkg.add("pydot")
2116
end
17+
2218
const Pkg = Base.require(Base.PkgId(Base.UUID("44cfe95a-1eb2-52ea-b672-e2afdf69b78f"), "Pkg"))
2319
Pkg.build("PythonCall")

0 commit comments

Comments
 (0)