Skip to content

Commit

Permalink
Add channels in build
Browse files Browse the repository at this point in the history
  • Loading branch information
hwpang committed Mar 29, 2024
1 parent 0c9dc43 commit 685b56a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@ using CondaPkg
using PythonCall
packages = keys(CondaPkg.current_packages())
if !("rmg" in packages) && !("rmgmolecule" in packages)
CondaPkg.add("rmgmolecule"; version=">=0.3.0", channel="mjohnson541")
CondaPkg.add_channel("defaults")
CondaPkg.add_channel("conda-forge")
CondaPkg.add_channel("mjohnson541")
CondaPkg.add("rmgmolecule"; version=">=0.3.0")
end
if !(v"3.7" <= PythonCall.C.python_version() && PythonCall.C.python_version() <= v"3.9")
CondaPkg.add("python"; version="3.9")
end
if !("matplotlib" in packages)
CondaPkg.add("matplotlib"; channel="conda-forge")
CondaPkg.add("matplotlib")
end
if !("rdkit" in packages)
CondaPkg.add("rdkit"; channel="conda-forge")
CondaPkg.add("rdkit")
end
if !("pydot" in packages)
CondaPkg.add("pydot"; channel="anaconda")
CondaPkg.add("pydot")
end
const Pkg = Base.require(Base.PkgId(Base.UUID("44cfe95a-1eb2-52ea-b672-e2afdf69b78f"), "Pkg"))
Pkg.build("PythonCall")

0 comments on commit 685b56a

Please sign in to comment.