Hacked By AnonymousFox
�
�܋f�
� � � d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlm Z d dl
mZ dgZ G d� de� � Z
edk r?d d lmZ ej d
� � e ed�� � � � � � � dS dS )
� N)� FCompiler)�find_executable)�make_temp_file)�log�IBMFCompilerc �` � e Zd ZdZdZdZddgdgddgdgd gd
dgdgd
�Zd� Zd� Zd� Z d� Z
d� ZdS )r �ibmzIBM XL Fortran Compilerzo(xlf\(1\)\s*|)IBM XL Fortran ((Advanced Edition |)Version |Enterprise Edition V|for AIX, V)(?P<version>[^\s*]*)z<F77>z -qversion�xlf�xlf90z-qfixed�xlf95�arz-cr�ranlib)�version_cmd�compiler_f77�compiler_fix�compiler_f90� linker_so�archiverr c � �
� t j | g|�R i |��}|��t j � d� � r�t d� � }t d� � }t j � |� � r�t j � |� � ra t j
|ddg� � }t j d|� � }|r|�
d� � }n# t t j f$ r Y nw xY wd�
|��t j � �
� � rct# t
j �
� � � � }|� � � �
fd �|D � � }|rd
dlm} | |d
� � x| _ }|S )N�aix�lslppr
z-Lc�xlfcmpz xlfcmp:(?P<version>\d+([.]\d+)+)�versionz/etc/opt/ibmcmp/xlfc � �� g | ]B}t j � t j � �|d � � � � �@|��CS )zxlf.cfg)�os�path�isfile�join)�.0�d�xlf_dirs ��p/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/distutils/fcompiler/ibm.py�
<listcomp>z,IBMFCompiler.get_version.<locals>.<listcomp>5 s>