bgPddlZddlZddlZddlZddlZddlZddlmZddlm Z ddl m Z ddl m Z ddlmZmZddl Z ddlmZddlmZdd lmZmZmZmZmZmZmZd e d <d e d <GddeZGddZdS)N)config)LANG_EXT)log) copy_file) CompileError LinkError)filepath_from_subprocess_output)generate_manifest)check_gcc_function_attribute,check_gcc_function_attribute_with_intrinsicscheck_gcc_variable_attributecheck_gcc_version_at_least check_inlinecheck_restrictcheck_compiler_gccz.ff77z.f90f90ceZdZexjdgz c_dZdZdZdZdZ dd Z dd Z dd Z dd Z dd Z ddZ ddZdZdZdZdZdZdZddZ d dZdS)!r)z fcompiler=Nz!specify the Fortran compiler typec<d|_tj|dSN) fcompiler old_configinitialize_optionsselfs q/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib64/python3.11/site-packages/numpy/distutils/command/config.pyrzconfig.initialize_options$s %d+++++ctj|ddlm}m}t jdkr|jjdvr|jj s |j n{#t$rn}tj d||jjjfz}t!tj dt"j||d}~wwxYwddlm}|dkr4|jj|jjfD]}d |vr|d t3|j|s||j|jd |j |_|jo|j|j|jr9|j||j dSdSdSdS) Nr) FCompiler new_fcompilerwin32)msvcintelwintelemwa> Could not initialize compiler instance: do you have Visual Studio installed? If you are trying to build with MinGW, please use "python setup.py build -c mingw32" instead. If you have Visual Studio installed, check it is correctly installed, and the right version (VS 2015 as of this writing). Original exception was: %s, and the Compiler class was %s ============================================================================zd ============================================================================) msvc9compiler z /MANIFEST)compilerdry_runforce c_compiler)!r_check_compilernumpy.distutils.fcompilerrr sysplatformr( compiler_type initialized initializeIOErrortextwrapdedent __class____name__print distutilserrorsDistutilsPlatformErrorr%get_build_versionldflags_sharedldflags_shared_debugappend isinstancerr) customize distribution get_version customize_cmdshow_customization)rrr emsgr%ldflagss rr,zconfig._check_compiler(sD"4(((FFFFFFFF <7 " " (C(F)G)G=, NNM,,.... N N N"/+hiidm5>?@C(/+hiijjj#*AA#FFAM N" 0 / / / / /..00B66 $ < $ B D44G"'11{333$.)44 8*]DN37--//8N00666N5577777 8 8*)88s A## C-A)CCcddlm}ddlm}|j}|dvr |j|_|j||d ||f|z}n#||f$r}||_||d}~wwxYw||_|S)Nr)r)DistutilsExecErrorrrz compiler is not set)distutils.ccompilerrdistutils.errorsrJr(r) rmthlangargsrrJ save_compilerretrFs r _wrap_methodzconfig._wrap_methodXs444444777777 > ! ! NDM = ,444ABB B &# &CC"L1 & & &)DMA % &&  s AA AAc|tj|||||f\}}|j|dz||fS)Nz.d)rSr_compile temp_filesr?)rbodyheaders include_dirsrOsrcobjs rrUzconfig._compilehsU$$Z%8$&*G\4%HJJS sTz***Cxrc |jjdkr|pgdd}|pgdd}|dvrd}|jr|jjpgD]p}|drD t jdd|g}t|}n#tt j f$rYnwxYw| |q|jj pgD]}||vr| ||D]#}|drd} |pgD]H} tj | d|z} tj | rd } nI| rkd} |D]} tj | d |z} tj | rQtj | d|z} t!| | |j | d } n| r t%jd |d |%n|jjd krt)||t,j|||||||fS)Nr"rKcz/usr/libcygpathz-wFz%s.libTzlib%s.azcould not find library z in directories mingw32)r(r0r library_dirs startswith subprocess check_outputr OSErrorCalledProcessErrorr? librariesospathjoinisfilerrVrwarnr rSr_link) rrWrXrYrfr`rOdlibname fileexistslibdirlibfilelibfile2s rrlz config._linkps = & . ."b!!!,I(.B2L~%%>6!^8>B / /<< 33GG$.$;Y=A1=F%G%G %DA$F$F%,Z-J#K%%% $%%++A....#'>#;#Ar66")33%,,W555$ 4 4%%f--7x" *0bF gll68w3GHHGw~~g..%) 'x" *  F gll693HIIGw~~g..$&7<<G8L#M#M!'8444..x888%) 'x#GG\\34444- 40] (I 5 5 d # # #  !14"&"+\4"ABB BsBBBNr]cZ||d|g|S)Nz2/* we need a dummy line to make distutils happy */)r, try_compile)rheaderrYr`rOs r check_headerzconfig.check_headers6 D,(( (rc|tjd||fz}||||S)Nz int main(void) { #ifndef %s (void) %s; #endif ; return 0; }r,r4r5rtrsymbolrXrYrWs r check_declzconfig.check_declsS  V$%g|<<= 0)]; test_array [0] = 0 ; return 0; } rr]aW typedef %(type)s npy_check_sizeof_type; int main (void) { static int test_array [1 - 2 * !(((long) (sizeof (npy_check_sizeof_type))) == %(size)s)]; test_array [0] = 0 ; return 0; } )rsizea3 typedef %(type)s npy_check_sizeof_type; int main (void) { static int test_array [1 - 2 * !(((long) (sizeof (npy_check_sizeof_type))) <= %(size)s)]; test_array [0] = 0 ; return 0; } rTr')r,r4r5rUrr) rrrXrYr`expectedrWrlowmidhighs rcheck_type_sizezconfig.check_type_sizes@     dfi00s , , ,  ? $  D!  MM$)T)J)J"J#\3888KKMMMKKK#D    " " di%E%EEs444  " " "Ag#gk " "Tkk#:!#c)C  di%E%EEs444    Ag Tkk s653B++ B87B82DD"!D":4E//FFFc |g} |rFt|tkr| |n| d|z| d| d|z| d| d|r!|d}| d|d|d n| d |z| d | d d | d z} || ||||S)Nint %s (void);#ifdef _MSC_VER#pragma function(%s)#endifint main (void) { (); %s; return 0;} )r,rstrr?ritry_link) rfuncrXrYrfr`declcall call_argsrWs r check_funczconfig.check_func;sY   5DzzS   D!!!! ,t3444 %&&& *T1222 H '(((  (  KKKtttYYY7 8 8 8 8 KK$ ' ' ' M""" Cyy%}}T7L& 66 6rc |g} |r4|D]\} } | r| d| z | d|D]} | d| z| d| d|r`|D]\} | |vr>|| r6|r | |vr|| sd} n|| } | d| d| d D| d | z]n|D]} | d | z| d | d d | d z} || ||||S)a0Check a list of functions at once. This is useful to speed up things, since all the functions in the funcs list will be put in one compilation unit. Arguments --------- funcs : seq list of functions to test include_dirs : seq list of header paths libraries : seq list of libraries to link the code snippet to library_dirs : seq list of library paths decl : dict for every (key, value), the declaration in the value will be used for function in key. If a function is not in the dictionary, no declaration will be used. call : dict for every item (f, value), if the value is True, a call will be done to the function f. rrrrrrrrrrrrr)r,itemsr?rir)rfuncsrXrYrfr`rrrrWfvrrPs rcheck_funcs_oncezconfig.check_funcs_once]s6   6  6 616KK 01 4555 %&&& 7 7D KK.5 6 6 6 6 H '(((  ) - -99a9%,!y..Yq\.!(|KKKqqq$$$ 78888KK! ,,,, - ) ) GaK(((( M""" Cyy%}}T7L& 66 6rc t|S)zUReturn the inline keyword recognized by the compiler, empty string otherwise.)rrs rrzconfig.check_inlinesD!!!rc t|S)zWReturn the restrict keyword recognized by the compiler, empty string otherwise.)rrs rrzconfig.check_restrictsd###rc t|S)z$Return True if the C compiler is gcc)rrs rrzconfig.check_compiler_gccs!$'''rc$t|||Sr)r )r attributers rr z#config.check_gcc_function_attributes+D)TBBBrc(t|||||Sr)r )rrrcodeincludes rr z3config.check_gcc_function_attribute_with_intrinsicss";D)<@$QQ Qrc"t||Sr)r )rrs rr z#config.check_gcc_variable_attributes+D)<<*55>*--0+j11CI@C6IJJJfm++//% HZ i( ! ! ! HZ  ! s`F72A98F79'B  #F7C+F7+D: DF7DF7DBF77%GG)NNr])NN)NNN)NNNN)NNNNFFN)rr)NNNNr]N)r7 __module__ __qualname__r user_optionsrr,rSrUrlrvr{r}rrrrrrrr r r rrrrrrsA  ,,,.8.8.8` 4B4B4Bl((((/3 = = = = 59==== @D:QQQQh/30459 6 6 6 6F/30459;6;6;6;6z""" $$$ (((CCCQQQ ===JJJJ ;?04%); ; ; ; ; ; rrc&eZdZdZdZdZdZdS)rcNtj|_d|_|t_dS)Nr)r.stdout sys_stdoutrrs r__init__zGrabStdout.__init__s*  rcZ|j||xj|z c_dSr)rwriter)rrs rrzGrabStdout.writes, d### T rc8|jdSr)rflushrs rrzGrabStdout.flushs rc(|jt_dSr)rr.rrs rrzGrabStdout.restores_ rN)r7rrrrrrrrrrrsP    %%%%%rr)rgrrbr.r4rdistutils.command.configrrrr9rdistutils.file_utilrrLrrnumpy.distutils.exec_commandr numpy.distutils.mingw32ccompilerr numpy.distutils.command.autodistr r r rrrrrrrrrs   999999------))))))77777777HHHHHH>>>>>>BBBBBBBBBBBBBBBBBBT T T T T ZT T T l%%%%%%%%%%r