B «@` ã@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úA/tmp/pip-unpacked-wheel-ecq9wray/numpy/distutils/command/build.pyÚ ózbuild.Z config_fccGsdS)NTr)rrrrr 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 -fma4zTBASELINE SSE2 SSE42 XOP FMA4 (FMA3 AVX2) AVX512F AVX512_SKX VSX VSX2 VSX3 NEON ASIMD)Ú old_buildÚinitialize_optionsZ fcompilerZ warn_errorZ cpu_baselineZ cpu_dispatchZdisable_optimizationZ simd_test)Úselfrrrr "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)r rÚplat_specifierrrrr4s   zbuild.finalize_optionscCst |¡dS)N)r Úrun)r rrrr<sz build.run) Ú__name__Ú __module__Ú __qualname__r Úhas_ext_modulesÚ sub_commandsÚ user_optionsÚ help_optionsrr rrrrrrrs"    r) rrZdistutils.command.buildrr Údistutils.utilrZ'numpy.distutils.command.config_compilerrrrrrÚs