@@ -427,7 +427,8 @@ def wrapper(*args, **kwargs):
427
427
428
428
@functools .lru_cache ()
429
429
def get_executable_info (name ):
430
- """Get the version of some executables that Matplotlib depends on.
430
+ """
431
+ Get the version of some executables that Matplotlib depends on.
431
432
432
433
.. warning:
433
434
The list of executables that this function supports is set according to
@@ -437,8 +438,8 @@ def get_executable_info(name):
437
438
----------
438
439
name : str
439
440
The executable to query. The following values are currently supported:
440
- "dvipng", "gs", "inkscape", "pdftops", "tex". This list is subject to
441
- change without notice.
441
+ "dvipng", "gs", "inkscape", "luatex", " pdftops", "tex". This list is
442
+ subject to change without notice.
442
443
443
444
Returns
444
445
-------
@@ -484,6 +485,9 @@ def impl(args, regex, min_ver=None):
484
485
None )
485
486
elif name == "inkscape" :
486
487
info = impl (["inkscape" , "-V" ], "^Inkscape ([^ ]*)" )
488
+ elif name == "luatex" :
489
+ info = impl (["luatex" , "--version" ],
490
+ r"^This is LuaTeX, Version (?:beta-)?(\d+\.\d+\.\d+)" )
487
491
elif name == "pdftops" :
488
492
info = impl (["pdftops" , "-v" ], "^pdftops version (.*)" )
489
493
if info and not ("3.0" <= info .version
@@ -502,7 +506,8 @@ def impl(args, regex, min_ver=None):
502
506
503
507
504
508
def get_all_executable_infos ():
505
- """Query all executables that Matplotlib may need.
509
+ """
510
+ Query all executables that Matplotlib may need.
506
511
507
512
.. warning:
508
513
The list of executables that this function queries is set according to
@@ -515,7 +520,8 @@ def get_all_executable_infos():
515
520
to change without notice.
516
521
"""
517
522
return {name : get_executable_info (name )
518
- for name in ["dvipng" , "gs" , "inkscape" , "pdftops" , "tex" ]}
523
+ for name in ["dvipng" , "gs" , "inkscape" , "luatex" , "pdftops" ,
524
+ "tex" ]}
519
525
520
526
521
527
@cbook .deprecated ("3.0" )
0 commit comments