| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/numpy/f2py/tests/__pycache__/ |
Upload File : |
�
�g�p � � � d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ d dl Z d dl
Z
ddlmZ d dl
mZ d dlmZ d� Z ed d
� ZdQd�Z e
j* d�
� d� � Z e
j* d�
� d� � Z e
j* d�
� d� � Z e
j* d�
� d� � Z e
j* d�
� d� � Z e
j* d�
� d� � Zd� Zd� Zd� Zd� Zd� Z d� Z!e
jD jG ejH dk d�� d� � Z%e
jD jG e jL � dk7 xs ejH dk d�� d � � Z'e
jD jP d!� � Z)d"� Z*d#� Z+d$� Z,d%� Z-d&� Z.d'� Z/d(� Z0d)� Z1d*� Z2d+� Z3d,� Z4d-� Z5d.� Z6d/� Z7e
jD jq d0�� d1� � Z9d2� Z:d3� Z;d4� Z<d5� Z=d6� Z>d7� Z?d8� Z@d9� ZAd:� ZBe
jD jq d0�� d;� � ZCe
jD jG e jL � dk7 xs ejH dk d<�� d=� � ZDe
jD jG e jL � dk7 xs ejH dk d<�� d>� � ZEd?� ZFd@� ZGdA� ZHdB� ZIdC� ZJdD� ZKdE� ZLdF� ZMdG� ZNdH� ZOdI� ZPdJ� ZQdK� ZRdL� ZSdM� ZTdN� ZUdO� ZVdP� ZWy)R� N)�Path)�
namedtuple� )�util)�main)�NOGIL_BUILDc �l � t j � st j d� y t � y )Nz$CLI command needs a Fortran compiler)r �has_fortran_compiler�pytest�skip�f2pycli� � �>C:\Python312\Lib\site-packages\numpy/f2py/tests/test_f2py2e.py�compiler_check_f2pyclir s � ��$�$�&����:�;�� r �PPathsz(finp, f90inp, pyf, wrap77, wrap90, cmodfc � � t | � }t |j d� |j d� |j d� |j |� d�� |j |� d�� |j |� d�� �� S )ax Takes in a temporary file for testing and returns the expected output and input paths
Here expected output is essentially one of any of the possible generated
files.
..note::
Since this does not actually run f2py, none of these are guaranteed to
exist, and module names are typically incorrect
Parameters
----------
fname_inp : str
The input filename
mname : str, optional
The name of the module, untitled by default
Returns
-------
genp : NamedTuple PPaths
The possible paths which are generated, not all of which exist
z.fz.f90�.pyfz-f2pywrappers.fz-f2pywrappers2.f90�module.c)�finp�f90inp�pyf�wrap77�wrap90�cmodf)r r �with_suffix� with_name)� fname_inp�mname�bpaths r �get_io_pathsr! $ s~ � �.
��O�E��
�
�
�t�
$�� � ��(����f�%����%���8�9����%��(:�;�<��o�o���x�0�1�
� r �session)�scopec � � t j dddd� j � }| j � dz }|j |d�� |S )�'Generates a single f90 file for testing�tests�src�clizhiworld.f90z hello.f90�ascii��encoding�r �getpath� read_text�getbasetemp�
write_text��tmpdir_factory�fdat�fns r �hello_world_f90r5 K sI � � �<�<����}�=�G�G�I�D� � #� #� %�� 3�B��M�M�$��M�)�
�Ir c � � t j dddd� j � }| j � dz }|j |d�� |S )z(F90 file for testing warnings in gh23598r&