§
y<ˆjÎ
ã ó — 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[^\s*]*)zz -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\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 €úq/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib64/python3.11/site-packages/numpy/distutils/fcompiler/ibm.pyú
z,IBMFCompiler.get_version..5 s> ø€ ÐUÐUÐU�q¥¤§¢µ´·²¸WÀaÈÑ0SÔ0SÑ!TÔ!TÐU�ÐUÐUÐUó r )ÚLooseVersion)r Úget_versionÚsysÚplatformÚ
startswithr r r ÚexistsÚ
subprocessÚcheck_outputÚreÚsearchÚgroupÚOSErrorÚCalledProcessErrorÚisdirÚsortedÚlistdirÚreverseÚdistutils.versionr% r )ÚselfÚargsÚkwdsr r r
ÚoÚmÚlr% r! s @r" r&