File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ PyCall 1.6.2
3
3
Colors
4
4
LaTeXStrings
5
5
Compat 0.32.0
6
+ VersionParsing
Original file line number Diff line number Diff line change 1
1
# PyPlot initialization — the hardest part is finding a working backend.
2
+ using VersionParsing
2
3
3
4
# ##########################################################################
4
5
@@ -173,19 +174,9 @@ function __init__()
173
174
copy! (matplotlib, pyimport_conda (" matplotlib" , " matplotlib" ))
174
175
mvers = matplotlib[:__version__ ]
175
176
global version = try
176
- convert (VersionNumber, mvers)
177
+ vparse ( mvers)
177
178
catch
178
- parts = split (mvers,' .' )
179
- try
180
- # handle mvers == aa.bb.cc.xx by dropping .xx, see #448
181
- convert (VersionNumber, join (parts[1 : min (3 ,length (parts))], ' .' ))
182
- catch
183
- if ! isempty (parts) && all (isdigit, parts[1 ])
184
- convert (VersionNumber, parts[1 ])
185
- else
186
- v " 0.0" # fallback
187
- end
188
- end
179
+ v " 0.0.0" # fallback
189
180
end
190
181
191
182
backend_gui = find_backend (matplotlib)
You can’t perform that action at this time.
0 commit comments