%PDF- %PDF-
| Direktori : /lib64/python3.9/site-packages/numpy/tests/__pycache__/ |
| Current File : //lib64/python3.9/site-packages/numpy/tests/__pycache__/test_scripts.cpython-39.opt-1.pyc |
a
z[yc% � @ 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 sz t jdkrBtt j�} | �d�r.tj�| d�gS tj�| dd�gS n4t j}t |j
�}t |j�}dd| d| d | gS d S )N�win32ZScriptsZf2py�.)�sys�platformr �
executable�endswith�os�pathr �version_info�str�major�minor)�exe_dir�versionr r � r �>/usr/lib64/python3.9/site-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"