zmc
2023-10-12 ed135d79df12a2466b52dae1a82326941211dcc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
U
O±d£
ã@sDddlZddlmZddlmZdd„ZGdd„deƒZd    d
„ZdS) éN)Ú MSVCCompileré)Ú platform_bitscCs"||kr |S|s|Sd ||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    úSd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/distutils/msvccompiler.pyÚ_merges
r c@seZdZddd„Zdd„ZdS)rrcCst ||||¡dS)N)Ú _MSVCCompilerÚ__init__)ÚselfÚverboseÚdry_runÚforcer    r    r
r (szMSVCCompiler.__init__cCszt dd¡}t dd¡}t |¡t|tjdƒtjd<t|tjdƒtjd<tdkrv|jdg7_|jdg7_dS)NÚlibÚÚincludeé z
/arch:SSE2)    ÚosÚgetenvr Ú
initializer ÚenvironrZcompile_optionsZcompile_options_debug)rZ environ_libZenviron_includer    r    r
r+s  
zMSVCCompiler.initializeN)rrr)Ú__name__Ú
__module__Ú __qualname__r rr    r    r    r
r's
rcCs2|jjdkrgSdg}|j dg¡r.| d¡|S)zè Add flags if we are using MSVC compiler
 
    We can't see `build_cmd` in our scope, because we have not initialized
    the distutils build command, so use this deferred calculation to run
    when we are building the library.
    Zmsvcz/GL-z-d2VolatileMetadata-)ÚcompilerÚ compiler_typeZ compiler_optZ cc_test_flagsÚappend)Z    build_cmdÚflagsr    r    r
Úlib_opts_if_msvc=s  
r!)rZdistutils.msvccompilerrr Z system_inforr r!r    r    r    r
Ú<module>s