https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/numpy/distutils/fcompiler/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/numpy/distutils/fcompiler/__pycache__/ibm.cpython-310.pyc
o

6��a�
�@s�ddlZddlZddlZddlZddlmZddlmZddlm	Z	ddl
mZdgZGdd�de�Z
edkrMdd	lmZe�d
�eedd����dSdS)
�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�xlf�xlf90z-qfixed�xlf95�arz-cr�ranlib)�version_cmd�compiler_f77�compiler_fix�compiler_f90�	linker_so�archiverrc
	stj|g|�Ri|��}|durNtj�d�rNtd�}td�}tj�|�rNtj�|�rNz
t	�
|ddg�}Wntt	jfy@Ynwt
�d|�}|rN|�d�}d�|durtj���rtt����}|���fd	d
�|D�}|rddlm}	|	|d�|_}|S)
N�aix�lslpprz-Lc�xlfcmpz 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��xlf_dir��?/usr/lib/python3/dist-packages/numpy/distutils/fcompiler/ibm.py�
<listcomp>5s(z,IBMFCompiler.get_version.<locals>.<listcomp>r)�LooseVersion)r�get_version�sys�platform�
startswithrrr�exists�
subprocess�check_output�OSError�CalledProcessError�re�search�group�isdir�sorted�listdir�reverse�distutils.versionr"r)
�self�args�kwdsrrr�o�m�lr"rrr r#s*�zIBMFCompiler.get_versioncC�dgS)Nz	-qextnamer�r4rrr �	get_flags;�zIBMFCompiler.get_flagscCr:)Nz-grr;rrr �get_flags_debug>r=zIBMFCompiler.get_flags_debugc
Cs�g}tjdkr
|�d�n|�d�|jddgd�}|durztj�d�r'd}nd	|}td
d�\}}t�d|�t|d
��)}t	�
d�j}|D]}||�}	|	rZ|�d|	�
d��qG|�|�qGWd�n1sjwY|��|�d|�|S)N�darwinz/-Wl,-bundle,-flat_namespace,-undefined,suppressz-bsharedr�()�	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)r$r%�appendr#r&rr�info�openr,�compile�match�writer.�close)
r4�optr�xlf_cfg�fo�new_cfg�fi�
crt1_match�liner8rrr �get_flags_linker_soAs.

��z IBMFCompiler.get_flags_linker_socCr:)Nz-O3rr;rrr �
get_flags_opt[r=zIBMFCompiler.get_flags_optN)�__name__�
__module__�__qualname__�
compiler_type�description�version_pattern�executablesr#r<r>rRrSrrrr r
s"�
�__main__)�customized_fcompiler�r)�compiler)rr,r$r(�numpy.distutils.fcompilerr�numpy.distutils.exec_commandr�numpy.distutils.misc_utilr�	distutilsr�	compilersrrT�numpy.distutilsr\�
set_verbosity�printr#rrrr �<module>sQ
�

https://t.me/RX1948 - 2025