a
    
d                     @   s   d Z ddlZddlZddlZddlZddlZddlmZmZ e	e
Zdd ZejjdejjjvddZejjejd	 d
dZejjejd ddZejjejd ddZejje  ddZdS )z8
pytest markers for the internal Matplotlib test suite.
    N)_get_executable_infoExecutableNotFoundErrorc                   C   st   t dstd dS ztd W n tyB   td Y dS 0 ztd W n tyn   td Y dS 0 dS )	NZtexzusetex mode requires TeX.FZdvipngzusetex mode requires dvipng.Zgsz!usetex mode requires ghostscript.T)shutilwhich_logwarningr   r    r   r   d/var/www/html/stable-diffusion-webui/venv/lib/python3.9/site-packages/matplotlib/testing/_markers.py_checkdep_usetex   s    



r
   Zepsz*This test needs a ghostscript installation)reasonZlualatexzlualatex + pgf is requiredZpdflatexzpdflatex + pgf is requiredZxelatexzxelatex + pgf is requiredz"This test needs a TeX installation)__doc__loggingr   ZpytestZmatplotlib.testingZ
matplotlibZmatplotlib.testing.comparer   r   	getLogger__name__r   r
   markZskipifZtestingcompare	converterZneeds_ghostscriptZ_check_for_pgfZneeds_pgf_lualatexZneeds_pgf_pdflatexZneeds_pgf_xelatexZneeds_usetexr   r   r   r	   <module>   s8   
