î
ÔáôWš  ã               @   sÄ   d  d l  m Z m Z m Z d  d l m Z d  d l m Z d g Z Gd d „  d e ƒ Z	 e
 d k rÀ d  d l m Z e j d ƒ d  d	 l m Z e d
 d ƒ Z e j ƒ  e e j ƒ  ƒ n  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 i d d g d 6d g d	 6d d
 g d 6d g d 6d d d g d 6d d g d 6d g d 6Z 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 CompilerÚstartz(f9[05]: (Sun|Forte|WorkShop).*Fortran 95z<F90>z-VZversion_cmdZf90Zcompiler_f77z-fixedZcompiler_fixZcompiler_f90z	-Bdynamicz-GÚ	linker_soÚarz-crÚarchiverZranlibz-moddir=z-Mz-xcode=pic32c             C   sB   d g } |  j  ƒ  p d d k r1 | j d ƒ n | j d ƒ | S)Nz-ftrap=%noneÚ Ú7z-f77z-fixed)Úget_versionÚappend)ÚselfÚret© r   ú>/tmp/pip-build-5ouued3s/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"%s"r   )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é   )Únew_fcompilerÚcompilerr   N)Ú
__future__r   r   r   Znumpy.distutils.ccompilerr   Znumpy.distutils.fcompilerr   Z	compilersr   r   Ú	distutilsr#   Úset_verbosityr%   r&   Z	customizeÚprintr   r   r   r   r   Ú<module>   s   	)
