3

6^                 @   sb   d dl mZmZmZ d dlmZ d dlmZ dddZe	dkr^d d	l
mZ ef edd
j  dS )    )divisionprint_functionabsolute_import)join)numpy_nodepr_api Nc             C   s   dd l }ddlm} ddlm}m} |d| |}dddg}|d}|rR|jd	 n|j|j |jd
 dd |D }	|j	d|	d dg}
dg|j
dg  }dg|j
dg  }|d jtd  |jd|
||dg|	 d| |jd |S )Nr   )Configuration)get_infoBlasNotFoundErrorZodrzd_odr.fz	d_mprec.fzdlunoc.fZblas_optzd_lpk.fz
d_lpkbls.fc             S   s   g | ]}t d |qS )odrpack)r   ).0x r   0/tmp/pip-build-vw4w4j08/scipy/scipy/odr/setup.py
<listcomp>   s    z!configuration.<locals>.<listcomp>r   )sourcesz__odrpack.c	libraries.include_dirsdefine_macros	__odrpackz	odrpack.h)r   r   r   dependstests)r   )warningsZnumpy.distutils.misc_utilr   Zscipy._build_utils.system_infor	   r
   appendwarn__doc__Zadd_librarypopextendr   add_extensionZadd_data_dir)parent_packagetop_pathr   r   r	   r
   configZlibodr_filesZ	blas_infoZodrpack_srcr   r   r   r   r   r   configuration   s4    

r#   __main__)setup)r!   )r   N)
__future__r   r   r   os.pathr   Zscipy._build_utilsr   r#   __name__Znumpy.distutils.corer%   Ztodictr   r   r   r   <module>   s   
$