B
    n\k                 @   s   d dl mZmZmZ d dlmZ d dlmZ dgZG dd deZ	e
dkr~d dlmZ ed d d	lmZ eed
d  dS )    )divisionabsolute_importprint_function)simple_version_match)	FCompilerSunFCompilerc               @   s   e Zd ZdZdZeddZddgdgddgdgdd	d
gddgdgdZdZdZ	dgZ
dd Zdd Zdd Zdd Zdd ZdS )r   sunz Sun or Forte Fortran 95 Compilerz(f9[05]: (Sun|Forte|WorkShop).*Fortran 95)startz<F90>z-VZf90z-fixedz	-Bdynamicz-GZarz-crranlib)Zversion_cmdZcompiler_f77Zcompiler_fixZcompiler_f90Z	linker_soZarchiverr
   z-moddir=z-Mz-xcode=pic32c             C   s0   dg}|   pddkr"|d n
|d |S )Nz-ftrap=%none 7z-f77z-fixed)get_versionappend)selfZret r   <lib/python3.7/site-packages/numpy/distutils/fcompiler/sun.pyget_flags_f77   s
    
zSunFCompiler.get_flags_f77c             C   s   ddgS )Nz-fastz-dalignr   )r   r   r   r   get_opt%   s    zSunFCompiler.get_optc             C   s   dgS )Nz-xtarget=genericr   )r   r   r   r   get_arch'   s    zSunFCompiler.get_archc             C   s   g }| dddg |S )NZfsuZsunmathZmvec)extend)r   Zoptr   r   r   get_libraries)   s    zSunFCompiler.get_librariesc             C   s   d| S )Nz-R%sr   )r   dirr   r   r   runtime_library_dir_option.   s    z'SunFCompiler.runtime_library_dir_optionN)__name__
__module____qualname__Zcompiler_typeZdescriptionr   Zversion_matchZexecutablesZmodule_dir_switchZmodule_include_switchZ	pic_flagsr   r   r   r   r   r   r   r   r   r      s&   
__main__)log   )customized_fcompilerr   )ZcompilerN)Z
__future__r   r   r   Znumpy.distutils.ccompilerr   Znumpy.distutils.fcompilerr   Z	compilersr   r   Z	distutilsr   Zset_verbosityZnumpy.distutilsr   printr   r   r   r   r   <module>   s   )
