Ë
    7Š·jÂ  ã                   ó$  — d Z ddlZddlZddlZddlmZ ddlZddlZddl	m
Z
mZ d„ Zej                  j                  d¬«      ej                  j                  d e«       «      d	„ «       «       Zej                  j#                  e
d
¬«      d„ «       Zy)z\ Test scripts

Test that we can run executable scripts that have been installed with numpy.
é    N)Údirname)ÚIS_WASMÚassert_equalc                  ó˜  — t         j                  dk(  rmt        t         j                  «      } | j	                  d«      r!t
        j                  j                  | d«      gS t
        j                  j                  | dd«      gS t         j                  }t        |j                  «      }t        |j                  «      }dd|z   d|z   dz   |z   gS )NÚwin32ÚScriptsÚf2pyú.)ÚsysÚplatformr   Ú
executableÚendswithÚosÚpathÚjoinÚversion_infoÚstrÚmajorÚminor)Úexe_dirÚversionr   r   s       úN/root/workspace/.venv/lib/python3.12/site-packages/numpy/tests/test_scripts.pyÚfind_f2py_commandsr      s¤   € Ü
‡|�|�wÒÜœ#Ÿ.™.Ó)ˆØ×Ñ˜IÔ&Ü—G‘G—L‘L ¨&Ó1Ð2Ð2ä—G‘G—L‘L ¨)°VÓ<Ð=Ð=ô ×"Ñ"ˆÜ�G—M‘MÓ"ˆÜ�G—M‘MÓ"ˆØ˜ ™¨°©¸Ñ(<¸uÑ(DÐEÐEó    zTest is unreliable)ÚreasonÚf2py_cmdc                 ó    — t        j                  | dg«      }t        |j                  «       t        j
                  j                  d«      «       y )Nú-vÚascii)Ú
subprocessÚcheck_outputr   ÚstripÚnpÚ__version__Úencode)r   Ústdouts     r   Ú	test_f2pyr'   "   s8   € ô ×$Ñ$ h°Ð%5Ó6€FÜ�—‘“¤§¡×!6Ñ!6°wÓ!?Õ@r   zCannot start subprocessc                  ó¾   — t        j                  t        j                  ddg«      } t	        | j                  «       t        j                  j                  d«      «       y )Nz-mnumpy.f2pyr   r   )	r    r!   r   r   r   r"   r#   r$   r%   )r&   s    r   Útest_pep338r)   *   s<   € ä×$Ñ$¤c§n¡n°nÀdÐ%KÓL€FÜ�—‘“¤§¡×!6Ñ!6°wÓ!?Õ@r   )Ú__doc__r   r    r   Úos.pathr   ÚpytestÚnumpyr#   Únumpy.testingr   r   r   ÚmarkÚxfailÚparametrizer'   Úskipifr)   © r   r   ú<module>r4      s˜   ðñó 
Û Û 
Ý ã ã ß /òFð$ ‡�×ÑÐ.ÐÓ/Ø‡�×Ñ˜Ñ%7Ó%9Ó:ñAó ;ó 0ðAð ‡�×Ñ�GÐ$=ÐÓ>ñAó ?ñAr   