HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/numpy/tests/__pycache__/test_scripts.cpython-310.pyc
o

6��a%�@s�dZddlZddlZddlZddlmZmZmZddl	Z	ddl
Zddlm
Z
eeeej�dd��Zdd�Zejjed	d
�ejjdd
�ej�de��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.pycCsttjdkr ttj�}|�d�rtj�|d�gStj�|dd�gStj}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�versionrr�r�:/usr/lib/python3/dist-packages/numpy/tests/test_scripts.py�find_f2py_commandss




rz Cannot test f2py command inplace)�reasonzTest is unreliable�f2py_cmdcCs(t�|dg�}t|��tj�d��dS)N�-v�ascii)�
subprocess�check_outputr�strip�np�__version__�encode)r�stdoutrrr�	test_f2py#sr$cCs,t�tjddg�}t|��tj�d��dS)Nz-mnumpy.f2pyrr)	rrr
rrrr r!r")r#rrr�test_pep338,sr%)�__doc__r
r�pytest�os.pathr�pathjoinrrr�numpyr �
numpy.testingr�__file__�
is_inplacer�mark�skipif�xfail�parametrizer$r%rrrr�<module>s