B
    0d                 @   s>   d d Z d
ddZedkr:ddlmZ ef edd	  dS )c             C   sL   ddl m}m} | j}|j}|| | |jdkr<|d n|||d d S )N    )set_cxx_flags_hooktry_add_flagZmsvcz/EHscz-fvisibility=hidden)Z"scipy._build_utils.compiler_helperr   r   Z_cxx_compilerextra_compile_argscompiler_typeappend)	build_extextr   r   ccargs r   J/var/www/html/venv/lib/python3.7/site-packages/scipy/_lib/_uarray/setup.pypre_build_hook   s    

r    Nc             C   s>   ddl m} |d| |}|d |jddgdd}t|_|S )Nr   )ConfigurationZ_uarrayLICENSEz_uarray_dispatch.cxxzc++)sourceslanguage)Znumpy.distutils.misc_utilr   Zadd_data_filesadd_extensionr   Z_pre_build_hook)parent_packagetop_pathr   configr   r   r   r   configuration   s    
r   __main__r   )setup)r   )r   N)r   r   __name__Znumpy.distutils.corer   Ztodictr   r   r   r   <module>   s   
