o 6˜¿a ã@sHddlZddlZddlmZddlmZddlmZGdd„deƒZdS)éN)Úbuild)Ú get_platform)Úshow_fortran_compilersc@sleZdZddd„fddd„fdejfgejZejgd¢Zejdd d efgZd d „Z d d„Z dd„Z d S)rÚ config_cccGódS©NT©©Úargsrrú?/usr/lib/python3/dist-packages/numpy/distutils/command/build.pyÚ ózbuild.Ú config_fccGrrrr rrr r r Ú 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 compilerscCs4t |¡d|_d|_d|_d|_d|_ d|_dS)NFÚminzmax -xop -fma4zTBASELINE SSE2 SSE42 XOP FMA4 (FMA3 AVX2) AVX512F AVX512_SKX VSX VSX2 VSX3 NEON ASIMD)Ú old_buildÚinitialize_optionsÚ fcompilerÚ warn_errorÚ cpu_baselineÚ cpu_dispatchÚdisable_optimizationÚ simd_test©Úselfrrr r"s  zbuild.initialize_optionscCsT|j}t |¡djtƒgtjdd…¢RŽ}|dur(tj  |j d|¡|_dSdS)Nz .{}-{}.{}éÚscripts) Ú build_scriptsrÚfinalize_optionsÚformatrÚsysÚ version_infoÚosÚpathÚjoinÚ build_base)rrÚplat_specifierrrr r4s   ÿÿzbuild.finalize_optionscCst |¡dS)N)rÚrunrrrr r'<sz build.run) Ú__name__Ú __module__Ú __qualname__rÚhas_ext_modulesÚ sub_commandsÚ user_optionsÚ help_optionsrrrr'rrrr rs   þýÿÿ r) r"r Údistutils.command.buildrrÚdistutils.utilrÚ'numpy.distutils.command.config_compilerrrrrr Ús