U
    ÉZj)  ã                   @   sn   d dl mZ d dlmZ dgZG dd„ deƒZedkrjd dlmZ e 	d¡ d dl
mZ eed	d
� ¡ ƒ dS )é    )Ú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-VÚf90ú-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}|   ¡ pddkr"| d¡ n
| d¡ |S )Nz-ftrap=%noneÚ Ú7z-f77r   )Úget_versionÚappend)ÚselfÚret© r   ú`/var/www/html/TRUCKING_PROJECT/venv/lib/python3.8/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   Ú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)Znumpy.distutils.ccompilerr   Znumpy.distutils.fcompilerr   Z	compilersr   r   Ú	distutilsr$   Úset_verbosityZnumpy.distutilsr&   Úprintr   r   r   r   r   Ú<module>   s   )
