Skip to content

Commit 6a665a9

Browse files
committed
handle the fact that latest conda does not support python 3.7
1 parent c48737e commit 6a665a9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

deps/build.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ using PyCall
22
if PyCall.pyversion.major != 3 || PyCall.pyversion.minor != 7
33
using Conda
44
const Pkg = Base.require(Base.PkgId(Base.UUID("44cfe95a-1eb2-52ea-b672-e2afdf69b78f"), "Pkg"))
5-
Conda.add("python=3.7")
5+
try
6+
Conda.add("python=3.7")
7+
catch e
8+
Conda.add("conda=22")
9+
Conda.add("python=3.7")
10+
end
11+
612
try
713
Conda.rm("numpy") #get around MKL problem
814
catch e

0 commit comments

Comments
 (0)