3
eåU^a  ã               @   sR   d dl mZmZmZ d dlZd dlmZmZ d dlZ	dddddddgZ
dd„ ZdS )é    )ÚdivisionÚabsolute_importÚprint_functionN)Úassert_Úsuppress_warningsÚf77ÚF77FLAGSÚf90ÚF90FLAGSÚfreeÚ	FREEFLAGSÚarchÚFARCHÚdebugÚFDEBUGÚflagsÚFFLAGSÚ	linker_soÚLDFLAGSc             C   s   | j ddƒ tjjjdd�}|jjdd„ ƒ}xRtD ]J\}}dj|ƒ}t	||ƒ}| j ||ƒ t	||ƒ}| j
|ƒ t||gkƒ q2W | j ddƒ xntD ]f\}}dj|ƒ}t	||ƒ}| j ||ƒ t	||ƒ}| j
|ƒ |d kræt||gkƒ q’t|||g kƒ q’W d S )	NZNPY_DISTUTILS_APPEND_FLAGSÚ0Únone)Úcompilerc              _   s   d S )N© )ÚargsÚkwargsr   r   úE/tmp/pip-build-fou5mlat/numpy/numpy/distutils/tests/test_fcompiler.pyÚ<lambda>   s    z&test_fcompiler_flags.<locals>.<lambda>z-dummy-{}-flagÚ1)ZsetenvÚnumpyÚ	distutilsZ	fcompilerZnew_fcompilerÚ	flag_varsÚcloneÚcustomizable_flagsÚformatÚgetattrZdelenvr   )ZmonkeypatchZfcr    ÚoptZenvvarZnew_flagZ
prev_flagsZ	new_flagsr   r   r   Útest_fcompiler_flags   s(    







r&   )r   r   )r	   r
   )r   r   )r   r   )r   r   )r   r   )r   r   )Ú
__future__r   r   r   ZpytestZnumpy.testingr   r   Znumpy.distutils.fcompilerr   r"   r&   r   r   r   r   Ú<module>   s   