3
ßL]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jdƒ d d	lmZ eed
d�jƒ ƒ 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-GÚarz-crÚranlib)Zversion_cmdZcompiler_f77Zcompiler_fixZcompiler_f90Ú	linker_soÚarchiverr   z-moddir=z-Mz-xcode=pic32c             C   s0   dg}| j ƒ pddkr"|jdƒ n
|jdƒ |S )Nz-ftrap=%noneÚ Ú7z-f77z-fixed)Úget_versionÚappend)ÚselfÚret© r   ú@/tmp/pip-install-q_7g0qgj/Numpy/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 }|j dddgƒ |S )NZfsuZsunmathZmvec)Úextend)r   Ú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__Úcompiler_typeÚ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   )ÚcompilerN)Ú
__future__r   r   r   Znumpy.distutils.ccompilerr   Znumpy.distutils.fcompilerr   Z	compilersr   r   Ú	distutilsr$   Úset_verbosityZnumpy.distutilsr&   Úprintr   r   r   r   r   Ú<module>   s   )
