HOME


sh-3ll 1.0
DIR:/usr/local/lib64/python3.6/site-packages/numpy/distutils/fcompiler/__pycache__/
Upload File :
Current File : //usr/local/lib64/python3.6/site-packages/numpy/distutils/fcompiler/__pycache__/nag.cpython-36.pyc
3

���h�	�@s�ddlZddlZddlmZddgZGdd�de�ZGdd�de�ZGdd�de�Zed	kr�dd
l	m
Z
e
jd�ddlm
Z
e
d
d�Zeej��eej��dS)�N)�	FCompiler�NAGFCompiler�NAGFORCompilerc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�BaseNAGFCompilerz"NAG.* Release (?P<version>[^(\s]*)cCs$tj|j|�}|r|jd�SdSdS)N�version)�re�search�version_pattern�group)�self�version_string�m�r�>/tmp/pip-build-5_djhm0z/numpy/numpy/distutils/fcompiler/nag.py�
version_match
s
zBaseNAGFCompiler.version_matchcCsdgS)Nz-Wl,-sharedr)rrrr�get_flags_linker_sosz$BaseNAGFCompiler.get_flags_linker_socCsdgS)Nz-O4r)rrrr�
get_flags_optszBaseNAGFCompiler.get_flags_optcCsdgS)N�r)rrrr�get_flags_archszBaseNAGFCompiler.get_flags_archN)�__name__�
__module__�__qualname__r	rrrrrrrrrs
rc@sVeZdZdZdZddgddgddgdgdgddgd	gd
�Zdd�Zd
d�Zdd�ZdS)rZnagzNAGWare Fortran 95 Compilerz<F90>z-VZf95z-fixed�arz-cr�ranlib)�version_cmd�compiler_f77�compiler_fix�compiler_f90�	linker_so�archiverrcCstjdkrddgStj|�S)N�darwinz-unsharedf95z/-Wl,-bundle,-flat_namespace,-undefined,suppress)�sys�platformrr)rrrrr's
z NAGFCompiler.get_flags_linker_socCs(|j�}|r|dkrdgStj|�SdS)Nz5.1z-target=native)�get_versionrr)rrrrrr+szNAGFCompiler.get_flags_archcCsdddddgS)Nz-gz-glinez-g90z-nanz-Cr)rrrr�get_flags_debug1szNAGFCompiler.get_flags_debugN)	rrr�
compiler_type�description�executablesrrr$rrrrrs
c@sFeZdZdZdZddgddgddgdgdgddgdgd�Zd	d
�ZdS)r�nagforzNAG Fortran Compilerz-Vz-fixedrz-crr)rrrrrrrcCs:|j�}|r(|dkr(dddddddd	gSdddddgSdS)
Nz6.1z-gz-uz-nanz-C=allz-thread_safez-kind=uniquez-Warn=allocationz-Warn=subnormal)r#)rrrrrr$Cs


zNAGFORCompiler.get_flags_debugN)rrrr%r&r'r$rrrrr4s
�__main__)�log�)�customized_fcompilerr()�compiler)r!rZnumpy.distutils.fcompilerrZ	compilersrrrr�	distutilsr*�
set_verbosityZnumpy.distutilsr,r-�printr#r$rrrr�<module>s