B
    [                 @   sl   d dl mZmZmZ d dlZd dlmZmZmZm	Z	 d dl
mZ dddZedkrhd d	lmZ eed
 dS )    )divisionprint_functionabsolute_importN)joinexistsabspathdirname)getcwd c          
   C   s&  ddl m} ddlm} |d| |}tt}t|d}|d}|ddg}y dd	lm	}	 t|d
g}
d}W nR t
k
r } z4d}t|dg}
t|
d stt|d d W d d }~X Y nX |jdt|dt|dg|
 t|dt|dg|g|dgd |d |r"|	|j||gd|_|S )Nr   )Configuration)get_infoZmkl_fftsrcZmkl	librariesZmkl_rt)	cythonizez_pydfti.pyxTFz	_pydfti.cz. z0Cython is required to build the initial .c file.Z_pydftizmklfft.c.srczmulti_iter.czmklfft.hzmulti_iter.hz-DNDEBUG)namesourcesZdependsZinclude_dirsr   Zextra_compile_argsZtests)Zinclude_path)Znumpy.distutils.misc_utilr   Znumpy.distutils.system_infor   r   __file__r   getZCython.Buildr   ImportErrorr   
ValueErrorstradd_extensionZadd_data_dirZext_modules)parent_packageZtop_pathr   r   ZconfigZpdirZwdirZmkl_infoZlibsr   r   Zhave_cythone r   ,lib/python3.7/site-packages/mkl_fft/setup.pyconfiguration   s>    




r   __main__)setup)r   )r
   N)Z
__future__r   r   r   sysos.pathr   r   r   r   osr	   r   __name__Znumpy.distutils.corer   r   r   r   r   <module>   s   
.