관리-도구
편집 파일: test_compile_function.cpython-311.pyc
� �܋fZ � �< � 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� � �y/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-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"