zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
U
O±ds
ã@sHddlZddlZddlmZddlmZddlmZGdd„deƒZdS)éN)Úbuild)Ú get_platform)Úshow_fortran_compilersc@steZdZddd„fddd„fdejfgejZejddd    d
d d gZejd ddefgZdd„Z    dd„Z
dd„Z dS)rZ    config_cccGsdS©NT©©ÚargsrrúTd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/distutils/command/build.pyÚ<lambda>    ózbuild.<lambda>Z    config_fccGsdSrrrrrr    r
 
r Z    build_src)z
fcompiler=Nz!specify the Fortran compiler type)z
warn-errorNz'turn all warnings into errors (-Werror))z cpu-baseline=Nz4specify a list of enabled baseline CPU optimizations)z cpu-dispatch=Nz.specify a list of dispatched CPU optimizations)zdisable-optimizationNz1disable CPU optimized code(dispatch,simd,fast...))z
simd-test=NzMspecify a list of CPU optimizations to be tested against NumPy SIMD interfacezhelp-fcompilerNz list available Fortran compilerscCs2t |¡d|_d|_d|_d|_d|_d|_dS)NFÚminzmax -xop -fma4zeBASELINE SSE2 SSE42 XOP FMA4 (FMA3 AVX2) AVX512F AVX512_SKX VSX VSX2 VSX3 VSX4 NEON ASIMD VX VXE VXE2)Ú    old_buildÚinitialize_optionsZ    fcompilerZ
warn_errorZ cpu_baselineZ cpu_dispatchZdisable_optimizationZ    simd_test©Úselfrrr    r"s
 
zbuild.initialize_optionscCsN|j}t |¡djtƒftjdd…žŽ}|dkrJtj     |j
d|¡|_dS)Nz    .{}-{}.{}éÚscripts) Ú build_scriptsr Úfinalize_optionsÚformatrÚsysÚ version_infoÚosÚpathÚjoinÚ
build_base)rrÚplat_specifierrrr    r5s
 
ÿzbuild.finalize_optionscCst |¡dS)N)r Úrunrrrr    r=sz    build.run) Ú__name__Ú
__module__Ú __qualname__r Úhas_ext_modulesÚ sub_commandsÚ user_optionsÚ help_optionsrrrrrrrr    rs,
 
þýõÿÿr)    rrZdistutils.command.buildrr Údistutils.utilrZ'numpy.distutils.command.config_compilerrrrrr    Ú<module>s