o
    Dfo                     @   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   \/home/ubuntu/webapp/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    

