a
    p=icˆ  ã                   @   s<   d dl Z d dlmZ ddlmZ dd„ ZG dd„ deƒZdS )	é    N)ÚMSVCCompileré   )Úplatform_bitsc                 C   s"   || v r| S | s|S d  | |g¡S )aÕ  Concatenate two environment paths avoiding repeats.

    Here `old` is the environment string before the base class initialize
    function is called and `new` is the string after the call. The new string
    will be a fixed string if it is not obtained from the current environment,
    or the same as the old string if obtained from the same environment. The aim
    here is not to append the new string if it is already contained in the old
    string so as to limit the growth of the environment string.

    Parameters
    ----------
    old : string
        Previous environment string.
    new : string
        New environment string.

    Returns
    -------
    ret : string
        Updated environment string.

    ú;)Újoin)ÚoldÚnew© r	   úm/home/droni/.local/share/virtualenvs/DPS-5Je3_V2c/lib/python3.9/site-packages/numpy/distutils/msvccompiler.pyÚ_merge   s
    r   c                   @   s   e Zd Zddd„Zdd„ ZdS )r   r   c                 C   s   t  | |||¡ d S )N)Ú_MSVCCompilerÚ__init__)ÚselfÚverboseÚdry_runÚforcer	   r	   r
   r   (   s    zMSVCCompiler.__init__c                 C   sz   t  dd¡}t  dd¡}t | ¡ t|t jd ƒt jd< t|t jd ƒt jd< tdkrv|  jdg7  _|  jdg7  _d S )NÚlibÚ Úincludeé    z
/arch:SSE2)	ÚosÚgetenvr   Ú
initializer   Úenvironr   Zcompile_optionsZcompile_options_debug)r   Zenviron_libZenviron_includer	   r	   r
   r   +   s    
zMSVCCompiler.initializeN)r   r   r   )Ú__name__Ú
__module__Ú__qualname__r   r   r	   r	   r	   r
   r   '   s   
r   )r   Zdistutils.msvccompilerr   r   Zsystem_infor   r   r	   r	   r	   r
   Ú<module>   s    