U
    ;vfo                     @   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st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argsZexep r   G/tmp/pip-unpacked-wheel-sdaoq5e2/numpy/_pyinstaller/test_pyinstaller.pytest_pyinstaller   s"     
 
 r   )	r   pathlibr   r	   markfilterwarningsZparametrizeZslowr   r   r   r   r   <module>   s   

