Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/numpy/tests/__pycache__/ |
Upload File : |
o 6��a% � @ s� d Z ddlZddlZddlZddlmZmZmZ ddl Z ddl Zddlm Z eeeej�dd��Zdd� Zejjed d �ejjdd �ej�de� �d d� ���Zdd� ZdS )z\ Test scripts Test that we can run executable scripts that have been installed with numpy. � N)�join�isfile�dirname)�assert_equalz..zsetup.pyc C st t jdkr tt j�} | �d�rtj�| d�gS tj�| dd�gS t j}t |j �}t |j�}dd| d| d | gS )N�win32�Scripts�f2py�.)�sys�platformr � executable�endswith�os�pathr �version_info�str�major�minor)�exe_dir�versionr r � r �:/usr/lib/python3/dist-packages/numpy/tests/test_scripts.py�find_f2py_commands s r z Cannot test f2py command inplace)�reasonzTest is unreliable�f2py_cmdc C s( t �| dg�}t|�� tj�d�� d S )N�-v�ascii)� subprocess�check_outputr �strip�np�__version__�encode)r �stdoutr r r � test_f2py# s r$ c C s, t �tjddg�} t| �� tj�d�� d S )Nz-mnumpy.f2pyr r ) r r r r r r r r! r"