o
    "gm                     @   s   d Z ddlZddlZddlZddlmZmZmZ ddl	Z	ddl
ZddlmZmZ eeeejddZdd Zejjed	d
ejjdd
ejde dd Zejjedd
dd ZdS )z\ Test scripts

Test that we can run executable scripts that have been installed with numpy.
    N)joinisfiledirname)assert_equalIS_WASMz..zsetup.pyc                  C   st   t jdkr tt j} | drtj| dgS tj| ddgS t j}t	|j
}t	|j}dd| d| d | gS )Nwin32Scriptsf2py.)sysplatformr   
executableendswithospathr   version_infostrmajorminor)exe_dirversionr   r    r   Z/var/www/html/ecg_monitoring/venv/lib/python3.10/site-packages/numpy/tests/test_scripts.pyfind_f2py_commands   s   




r   z Cannot test f2py command inplace)reasonzTest is unreliablef2py_cmdc                 C   s(   t | dg}t| tjd d S )N-vascii)
subprocesscheck_outputr   stripnp__version__encode)r   stdoutr   r   r   	test_f2py#   s   r%   zCannot start subprocessc                  C   s,   t tjddg} t|  tjd d S )Nz-mnumpy.f2pyr   r   )	r   r   r   r   r   r    r!   r"   r#   )r$   r   r   r   test_pep338,   s   r&   )__doc__r   r   pytestos.pathr   pathjoinr   r   r   numpyr!   numpy.testingr   r   __file__
is_inplacer   markskipifxfailparametrizer%   r&   r   r   r   r   <module>   s     