File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -57,16 +57,18 @@ $julia -e '
57
57
using Conda; env, rc = Conda.ROOTENV, Conda.conda_rc(Conda.ROOTENV)
58
58
Conda.runconda(`config --set auto_update_conda False --file $rc --force`, env)
59
59
Pkg.add("PyCall"); Pkg.build("PyCall"; verbose=true)
60
- # see discourse.julialang.org/t/glibcxx-version-not-found/82209/8
61
- # julia 1.8.3 is built with libstdc++.so.6.0.29, so we must restrict to this version (gcc 11.3.0, not gcc 12.2.0)
62
- libstdcxx_ver = Base.BinaryPlatforms.detect_libstdcxx_version()
63
- gcc_ver = Dict(
64
- v"3.4.29" => 11,
65
- v"3.4.30" => 12,
66
- # ... keep this up-to-date with gcc 13
67
- )[libstdcxx_ver]
68
- Conda.add("libgcc-ng<=$gcc_ver")
69
- Conda.add("libstdcxx-ng<=$gcc_ver")
60
+ if Sys.islinux()
61
+ # see discourse.julialang.org/t/glibcxx-version-not-found/82209/8
62
+ # julia 1.8.3 is built with libstdc++.so.6.0.29, so we must restrict to this version (gcc 11.3.0, not gcc 12.2.0)
63
+ libstdcxx_ver = Base.BinaryPlatforms.detect_libstdcxx_version()
64
+ gcc_major = Dict(
65
+ v"3.4.29" => 11,
66
+ v"3.4.30" => 12,
67
+ # ... keep this up-to-date with gcc 13
68
+ )[libstdcxx_ver]
69
+ Conda.add("libgcc-ng=$gcc_major")
70
+ Conda.add("libstdcxx-ng=$gcc_major")
71
+ end
70
72
Conda.add("matplotlib")
71
73
Conda.list()
72
74
'
You can’t perform that action at this time.
0 commit comments