File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ dependencies = [
23
23
" custom_inherit" ,
24
24
" multipledispatch" ,
25
25
" numpy>=1.8.0" ,
26
+ " packaging" ,
26
27
" pypng" ,
27
28
" reportlab" ,
28
29
]
Original file line number Diff line number Diff line change 6
6
"""
7
7
8
8
9
- import distutils .version
10
9
import io
11
10
import subprocess
12
11
12
+ from packaging .version import Version
13
13
import reportlab .pdfgen .canvas
14
14
15
15
import toyplot .reportlab
29
29
if _gs_command is None :
30
30
raise Exception ("A ghostscript executable is required." ) # pragma: no cover
31
31
32
- if distutils . version . StrictVersion (_gs_version ) >= "9.14" :
32
+ if Version (_gs_version ) >= Version ( "9.14" ) :
33
33
_gs_resolution = ["-r%s" % (96 * 4 ), "-dDownScaleFactor=4" ]
34
34
else : # pragma: no cover
35
35
_gs_resolution = ["-r%s" % (96 )]
You can’t perform that action at this time.
0 commit comments