관리-도구
편집 파일: test_scripts.cpython-311.pyc
� �܋fm � �� � d Z ddlZddlZddlZddlmZmZmZ ddl Z ddl Zddlm Z mZ e e eej � � dd� � � � Zd� Zej � ed� � � ej � d � � � ej � d e� � � � d� � � � � � � Zej � ed � � � d� � � ZdS )z\ Test scripts Test that we can run executable scripts that have been installed with numpy. � N)�join�isfile�dirname)�assert_equal�IS_WASMz..zsetup.pyc � � t j dk rqt t j � � } | � d� � r!t j � | d� � gS t j � | dd� � gS t j }t |j � � }t |j � � }dd|z d|z dz |z gS )N�win32�Scripts�f2py�.)�sys�platformr � executable�endswith�os�pathr �version_info�str�major�minor)�exe_dir�versionr r s �k/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/tests/test_scripts.py�find_f2py_commandsr s� � � �|�w����#�.�)�)�����I�&�&� >��G�L�L��&�1�1�2�2��G�L�L��)�V�<�<�=�=� �"���G�M�"�"���G�M�"�"����������(<�u�(D�E�E� z Cannot test f2py command inplace)�reasonzTest is unreliable�f2py_cmdc � � t j | dg� � }t |� � � t j � d� � � � d S )N�-v�ascii)� subprocess�check_outputr �strip�np�__version__�encode)r �stdouts r � test_f2pyr( # sG � � � $�h��%5� 6� 6�F���������!6�!6�w�!?�!?�@�@�@�@�@r zCannot start subprocessc �� � t j t j ddg� � } t | � � � t j � d� � � � d S )Nz-mnumpy.f2pyr r ) r! r"