| Server IP : 46.101.140.223 / Your IP : 216.73.217.61 Web Server : nginx/1.22.1 System : Linux debian-s-1vcpu-1gb-fra1-01 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : deploy-others ( 1001) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/numpy/f2py/tests/__pycache__/ |
Upload File : |
�
���cZ � �< � d Z ddlZddlZddlZddlmZ ddlZddlZddl m
Z
d� Zej �
ddd gd
dg� � ej � d�
� � d� � � � � Zd� Zd� Zej �
dddg� � d� � � ZdS )z0See https://github.com/numpy/numpy/pull/11937.
� N)�
import_module� )�utilc � � t j � � st j d� � t j � � st j d� � d S d S )NzNeeds C compilerzNeeds FORTRAN 77 compiler)r �has_c_compiler�pytest�skip�has_f77_compiler� � �H/usr/lib/python3/dist-packages/numpy/f2py/tests/test_compile_function.py�setup_moduler sV � ��� � � (���&�'�'�'�� �"�"� 1���/�0�0�0�0�0�1� 1r �
extra_argsz--nooptz--debugz--noopt --debug� z$Imported module seems never deleted.)�reasonc �P � d}t j � � }t j � � }t j � � }t j � |t t j � � � � dz � � }|d fD ]Z}t j
|� � 5 t j �
||| |�� � }|dk sJ � d d d � � n# 1 swxY w Y �[t j dk r:t! |� � }|� � � } | dk sJ �t j |= d S d S )NzT
integer function foo()
foo = 10 + 5
return
end
z.f)�
modulenamer � source_fnr �win32� )r �get_module_dir�get_temp_module_name�os�getcwd�path�join�str�uuid�uuid4� switchdir�numpy�f2py�compile�sys�platformr �foo�modules)
r �fsource�moddir�modname�cwd�targetr �ret_val�return_check�calc_results
r
�test_f2py_init_compiler0 si � ��G� �
�
"�
"�F��'�)�)�G�
�)�+�+�C�
�W�\�\�&�#�d�j�l�l�"3�"3�d�":�
;�
;�F� �d�^� � � �
�^�F�
#�
#� � ��j�(�(��4;�4>�3<� )� >� >�G� �a�<�<�<�<�<� � � � � � � � � � � ���� � � � �� �|�w��� %�W�-�-��"�&�&�(�(���b� � � � �
�K�� � � � �s �,C�C �C c �T � t j � d� � } | dk sJ �d S )N� invalidr )r! r"