%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib64/python3.9/site-packages/numpy/distutils/fcompiler/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib64/python3.9/site-packages/numpy/distutils/fcompiler/__pycache__/ibm.cpython-39.opt-1.pyc

a

z[yc�
�@s�ddlZddlZddlZddlZddlmZddlmZddlm	Z	ddl
mZdgZGdd�de�Z
edkr�dd	lmZe�d
�eedd����dS)
�N)�	FCompiler)�find_executable)�make_temp_file)�log�IBMFCompilerc@sheZdZdZdZdZddgdgddgdgd	gd
dgdgd
�Zdd�Zdd�Zdd�Z	dd�Z
dd�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�xlfZxlf90z-qfixedZxlf95�arz-cr�ranlib)Zversion_cmdZcompiler_f77Zcompiler_fixZcompiler_f90Z	linker_soZarchiverr
c
	stj|g|�Ri|��}|dur�tj�d�r�td�}td�}tj�|�r�tj�|�r�zt	�
|ddg�}Wntt	jfy�Yn0t
�d|�}|r�|�d�}d�|dur�tj���r�tt����}|���fd	d
�|D�}|r�ddlm}	|	|d�|_}|S)
N�aix�lslpprz-LcZxlfcmpz xlfcmp:(?P<version>\d+([.]\d+)+)�versionz/etc/opt/ibmcmp/xlfc	s(g|] }tj�tj��|d��r|�qS)zxlf.cfg)�os�path�isfile�join)�.0�d�Zxlf_dir��C/usr/lib64/python3.9/site-packages/numpy/distutils/fcompiler/ibm.py�
<listcomp>5�z,IBMFCompiler.get_version.<locals>.<listcomp>r)�LooseVersion)r�get_version�sys�platform�
startswithrrr�exists�
subprocessZcheck_output�OSErrorZCalledProcessError�re�search�group�isdir�sorted�listdir�reverseZdistutils.versionrr
)
�self�args�kwdsr
rr�o�m�lrrrrrs(zIBMFCompiler.get_versioncCsdgS)Nz	-qextnamer�r(rrr�	get_flags;szIBMFCompiler.get_flagscCsdgS)Nz-grr.rrr�get_flags_debug>szIBMFCompiler.get_flags_debugc
Cs�g}tjdkr|�d�n
|�d�|jddgd�}|dur�tj�d�rNd}nd	|}td
d�\}}t�d|�t|d
��R}t	�
d�j}|D]0}||�}	|	r�|�d|	�
d��q�|�|�q�Wd�n1s�0Y|��|�d|�|S)N�darwinz/-Wl,-bundle,-flat_namespace,-undefined,suppressz-bsharedr�()Z	ok_statusrz/etc/xlf.cfgz/etc/opt/ibmcmp/xlf/%s/xlf.cfgz_xlf.cfg)�suffixz	Creating �rz \s*crt\s*=\s*(?P<path>.*)/crt1.ozcrt = %s/bundle1.o
rz-F)rr�appendrrrr�info�openr!�compile�match�writer#�close)
r(�optr
Zxlf_cfg�foZnew_cfg�fiZ
crt1_match�liner,rrr�get_flags_linker_soAs*

*z IBMFCompiler.get_flags_linker_socCsdgS)Nz-O3rr.rrr�
get_flags_opt[szIBMFCompiler.get_flags_optN)�__name__�
__module__�__qualname__Z
compiler_type�descriptionZversion_patternZexecutablesrr/r0r@rArrrrr
s �
�__main__)�customized_fcompiler�r)Zcompiler)rr!rrZnumpy.distutils.fcompilerrZnumpy.distutils.exec_commandrZnumpy.distutils.misc_utilrZ	distutilsrZ	compilersrrBZnumpy.distutilsrGZ
set_verbosity�printrrrrr�<module>sQ


Zerion Mini Shell 1.0