U
    md                     @   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k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   sx   t dstd dS ztd W n  tk
rD   td Y dS X ztd W n  tk
rr   td Y dS X dS )	Ntexzusetex mode requires TeX.FZdvipngzusetex mode requires dvipng.gsz!usetex mode requires ghostscript.T)shutilwhich_logwarningr   r    r
   r
   T/home/sam/Atlas/atlas_env/lib/python3.8/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skipiftestingcompare	converterZneeds_ghostscriptZ_check_for_pgfZneeds_pgf_lualatexZneeds_pgf_pdflatexZneeds_pgf_xelatexZneeds_usetexr
   r
   r
   r   <module>   s8   
