File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,12 @@ packages = keys(CondaPkg.current_packages())
5
5
6
6
if ! (" rmg" in packages) && ! (" rmgmolecule" in packages)
7
7
@info " missing rmg and rmgmolecule installing rmgmolecule..."
8
- if ! (v " 3.7" <= PythonCall. C. python_version () && PythonCall. C. python_version () <= v " 3.9" )
8
+ if " python" in packages
9
+ py_version = VersionNumber (packages[" python" ][:version ])
10
+ else
11
+ py_version = nothing
12
+ end
13
+ if py_version === nothing || ! (v " 3.7" <= py_version) && py_version <= v " 3.9" )
9
14
@info " python version was not in 3.7-3.9 changing python version"
10
15
CondaPkg. add (" python" ; version= " 3.9" )
11
16
end
Original file line number Diff line number Diff line change @@ -6,7 +6,12 @@ packages = keys(CondaPkg.current_packages())
6
6
7
7
if ! (" rmg" in packages) && ! (" rmgmolecule" in packages)
8
8
@info " missing rmg and rmgmolecule installing rmgmolecule..."
9
- if ! (v " 3.7" <= PythonCall. C. python_version () && PythonCall. C. python_version () <= v " 3.9" )
9
+ if " python" in packages
10
+ py_version = VersionNumber (packages[" python" ][:version ])
11
+ else
12
+ py_version = nothing
13
+ end
14
+ if py_version === nothing || ! (v " 3.7" <= py_version) && py_version <= v " 3.9" )
10
15
@info " python version was not in 3.7-3.9 changing python version"
11
16
CondaPkg. add (" python" ; version= " 3.9" )
12
17
end
You can’t perform that action at this time.
0 commit comments