a
    p=ico                     @   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sJ 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)r   Ztmp_pathZpyinstaller_clisourceargsexep r   t/home/droni/.local/share/virtualenvs/DPS-5Je3_V2c/lib/python3.9/site-packages/numpy/_pyinstaller/test_pyinstaller.pytest_pyinstaller   s    r   )	r   pathlibr   r	   markfilterwarningsZparametrizeZslowr   r   r   r   r   <module>   s   

