We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aa21d2 commit 2fb2129Copy full SHA for 2fb2129
deps/build.jl
@@ -1,7 +1,20 @@
1
using CondaPkg
2
using PythonCall
3
-packages = keys(CondaPkg.current_packages())
4
-if !("rmg" in packages) && !("rmgmolecule" in packages)
+
+has_rmgpy = true
5
+has_rmgmolecule = true
6
+try
7
+ PythonCall.pyimport("rmgpy")
8
+catch
9
+ has_rmgpy = false
10
+end
11
12
+ PythonCall.pyimport("rmgmolecule")
13
14
+ has_rmgmolecule = false
15
16
17
+if !has_rmgpy && !has_rmgmolecule
18
19
if !(v"3.7" <= PythonCall.C.python_version() && PythonCall.C.python_version() <= v"3.9")
20
CondaPkg.add("python"; version=">=3.9")
0 commit comments