U
    ÉZjo  ã                   @   sZ   d dl Z d dlmZ d dlZej d¡ej d¡ej dddg¡ejjdd	„ ƒƒƒƒZdS )
é    N)ÚPathzignore::DeprecationWarningzignore::ResourceWarningÚmodez--onedirú	--onefilec              	   C   s¬   t  d¡j}ttƒ d¡ ¡ }dt|d ƒdt|d ƒdt|ƒ| t|ƒg}||ƒ | dkrj|d |j }n|d |j |j }t	jt|ƒgd	t	j
d
�}|j ¡ dks¨t‚dS )z7Compile and run pyinstaller-smoke.py using PyInstaller.zPyInstaller.__main__zpyinstaller-smoke.pyz
--workpathÚbuildz
--distpathÚdistz
--specpathr   T)ÚcheckÚstdouts
   I made it!N)ÚpytestZimportorskipÚrunr   Ú__file__Ú	with_nameÚresolveÚstrÚstemÚ
subprocessÚPIPEr   ÚstripÚAssertionError)r   Ztmp_pathZpyinstaller_cliÚsourceÚargsÚexeÚp© r   úf/var/www/html/TRUCKING_PROJECT/venv/lib/python3.8/site-packages/numpy/_pyinstaller/test_pyinstaller.pyÚtest_pyinstaller   s"     
 
 úr   )	r   Úpathlibr   r	   ÚmarkÚfilterwarningsZparametrizeZslowr   r   r   r   r   Ú<module>   s   

