U
    Âmœ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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   
þþþþþ