o
    Ô­jo  ã                   @   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r5|d |j }n
|d |j |j }t	jt|ƒgd	t	j
d
�}|j ¡ dksTJ ‚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)ÚpytestÚimportorskipÚrunr   Ú__file__Ú	with_nameÚresolveÚstrÚstemÚ
subprocessÚPIPEr   Ústrip)r   Útmp_pathÚpyinstaller_cliÚsourceÚargsÚexeÚp© r   ú`/var/www/html/CropPilot/venv/lib/python3.10/site-packages/numpy/_pyinstaller/test_pyinstaller.pyÚtest_pyinstaller   s   úr   )	r   Úpathlibr   r	   ÚmarkÚfilterwarningsÚparametrizeÚslowr   r   r   r   r   Ú<module>   s    

