/usr/local/lib64/python3.6/site-packages/numpy/distutils/command/__pycache__
NameSizeModeActions
autodist.cpython-36.pyc38020644editdlrm
bdist_rpm.cpython-36.pyc8250644editdlrm
build.cpython-36.pyc17230644editdlrm
build_clib.cpython-36.pyc78250644editdlrm
build_ext.cpython-36.pyc128550644editdlrm
build_py.cpython-36.pyc13410644editdlrm
build_scripts.cpython-36.pyc16520644editdlrm
build_src.cpython-36.pyc188490644editdlrm
config.cpython-36.pyc138940644editdlrm
config_compiler.cpython-36.pyc41710644editdlrm
develop.cpython-36.pyc8480644editdlrm
egg_info.cpython-36.pyc10780644editdlrm
install.cpython-36.pyc20420644editdlrm
install_clib.cpython-36.pyc16180644editdlrm
install_data.cpython-36.pyc8920644editdlrm
install_headers.cpython-36.pyc9460644editdlrm
sdist.cpython-36.pyc9360644editdlrm
__init__.cpython-36.pyc10150644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/numpy/distutils/command/__pycache__/config.cpython-36.pyc (13894B)
3 EgP@sddlZddlZddlZddlZddlZddlZddlmZddlm Z ddl m Z ddl m Z ddlmZmZddl Z ddlmZddlmZdd lmZmZmZmZmZmZmZd e d <d e d <GdddeZGdddZdS)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.f90f90c@seZdZejd/g7_ddZddZdd Zd d Zd d Z d0ddZ d1ddZ d2ddZ d3ddZ d4ddZd5ddZd6ddZddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Zd7d+d,Zd8d-d.ZdS)9r fcompiler=N!specify the Fortran compiler typecCsd|_tj|dS)N) fcompiler old_configinitialize_options)selfrJ/usr/local/lib64/python3.6/site-packages/numpy/distutils/command/config.pyr$szconfig.initialize_optionscCsFtj|ddlm}m}tjdkr|jjdkr|jj sy|jj WnTt k r}z8t j d||jjjf}tt j dtjj|WYdd}~XnXdd lm}|jd krx*|jj|jjgD]}d |kr|jd qWt|j|sB||j|jd |jd |_|jdk rB|jj|j|jjrB|jj||jj dS)Nr) FCompiler new_fcompilerwin32msvcintelwintelemwas 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 2008 for python 2.6, 2.7 and 3.2, VS 2010 for >= 3.3). Original exception was: %s, and the Compiler class was %s ============================================================================zd ============================================================================) msvc9compiler z /MANIFEST)compilerdry_runforce c_compiler)rrr )!r_check_compilerZnumpy.distutils.fcompilerrrsysplatformr$ compiler_typeZ initializedZ initializeIOErrortextwrapdedent __class____name__print distutilserrorsDistutilsPlatformErrorr!Zget_build_versionZldflags_sharedZldflags_shared_debugappend isinstancerr%Z customize distribution get_versionZ customize_cmdZshow_customization)rrremsgr!Zldflagsrrrr((s:       zconfig._check_compilerc Csddlm}ddlm}|j}|dkr.|j|_y||f|}Wn8||fk rx}zt|||_|WYdd}~XnX||_|S)Nr)r)DistutilsExecErrorrr)rr)distutils.ccompilerrdistutils.errorsr;r$rstr) rZmthlangargsrr;Z save_compilerretr9rrr _wrap_methodYs  zconfig._wrap_methodcCs4|jtj|||||f\}}|jj|d||fS)Nz.d)rBr_compile temp_filesr5)rbodyheaders include_dirsr?srcobjrrrrChs zconfig._compilec Cs|jjdkr|pgdd}|p$gdd}|dkrd}|jrx`|jjpLgD]P}|jdrytjdd|g}Wnttjfk rYn Xt |}|j |qNWx&|jj pgD]}||kr|j |qWx|D]}|jdrqd} x4|pgD](} t j j| d |} t j j| rd } PqW| r"qd} x\|D]T} t j j| d |} t j j| r,t j j| d |} t| | |jj | d } Pq,W| rqtjd ||fqWn|jjd krt||jtj|||||||fS)Nrrrcz/usr/libZcygpathz-wFz%s.libTzlib%s.az+could not find library %r in directories %sZmingw32)rr)r$r+r library_dirs startswith subprocess check_outputOSErrorCalledProcessErrorrr5 librariesospathjoinisfilerrDrwarnr rBr_link) rrErFrGrQrKr?dlibnameZ fileexistsZlibdirZlibfileZlibfile2rrrrWps^        z config._linkrJcCs|j|jd|g|S)Nz2/* we need a dummy line to make distutils happy */)r( try_compile)rheaderrGrKr?rrr check_headerszconfig.check_headercCs(|jtjd||f}|j|||S)Nz int main(void) { #ifndef %s (void) %s; #endif ; return 0; })r(r-r.rZ)rsymbolrFrGrErrr check_declszconfig.check_declcCs&|jtjd|f}|j|||S)Nz int main(void) { #if %s #else #error false or undefined macro #endif ; return 0; })r(r-r.rZ)rr]rFrGrErrrcheck_macro_trues zconfig.check_macro_truecCsp|jtjdd|i}d}zBy |j|d|i||dd}Wntjjk r\d}YnXWd|jX|S)zYCheck type availability. Return True if the type can be compiled, False otherwisez int main(void) { if ((%(name)s *) 0) return 0; if (sizeof (%(name)s)) return 0; } nameFtyperJTN)r(r-r.rCr2r3r_clean)r type_namerFrGrKrEstrrr check_types  zconfig.check_typec Csf|jtjd}|j|d|i||d|j|rtjd}xH|D]@}y&|j|||d||d|j|Stk rYqFXqFWtjd}d}d} xVy(|j||| d||d|jPWqtk r| d}d | d} YqXqW| } xh|| kr`| |d |} y*|j||| d||d|j| } Wqtk r\| d}YqXqW|S) zCheck size of a given type.a, typedef %(type)s npy_check_sizeof_type; int main (void) { static int test_array [1 - 2 * !(((long) (sizeof (npy_check_sizeof_type))) >= 0)]; test_array [0] = 0 ; return 0; } rarJaW 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; } )rasizea3 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; } rr#)r(r-r.rCrbr) rrcrFrGrKexpectedrErflowZmidhighrrrcheck_type_sizesR          zconfig.check_type_sizeFc Cs|jg} |r6t|tkr(| j|n| jd|| jd| jd|| jd| jd|r|dkrrd}| jd||fn| jd|| jd | jd d j| d } |j| ||||S) Nzint %s (void);z#ifdef _MSC_VERz#pragma function(%s)z#endifzint main (void) {z %s(%s);z %s;z return 0;} )r(rar>r5rTtry_link) rfuncrFrGrQrKdeclcall call_argsrErrr check_func;s(        zconfig.check_funcc Cs*|jg} |r8x&|jD]\} } | r| jd| qW| jdx|D]} | jd| qHW| jd| jd|rx~|D]X} | |kr|| r|o| |ko|| sd} n|| } | jd| | fq|| jd| q|Wnx|D]} | jd| qW| jd | jd d j| d } |j| ||||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. zint %s (void);z#ifdef _MSC_VERz#pragma function(%s)z#endifzint main (void) {rlz %s(%s);z %s;z return 0;rmrn)r(itemsr5rTro)rfuncsrFrGrQrKrqrrrsrEfvrpr@rrrcheck_funcs_once]s4         zconfig.check_funcs_oncecCst|S)zUReturn the inline keyword recognized by the compiler, empty string otherwise.)r)rrrrrszconfig.check_inlinecCst|S)zWReturn the restrict keyword recognized by the compiler, empty string otherwise.)r)rrrrrszconfig.check_restrictcCst|S)z$Return True if the C compiler is gcc)r)rrrrrszconfig.check_compiler_gcccCs t|||S)N)r )r attributer`rrrr sz#config.check_gcc_function_attributecCst|||||S)N)r )rrzr`codeincluderrrr sz3config.check_gcc_function_attribute_with_intrinsicscCs t||S)N)r )rrzrrrr sz#config.check_gcc_variable_attributercCst||||S)zYReturn True if the GCC version is greater than or equal to the specified version.)r )rmajorminorZ patchlevelrrrr sz!config.check_gcc_version_at_leastcCs~tjdtdd|jd\}} y&t} y&|j||||||\} } } | jWn$tk rt| j} | jYnXt j j d| } yt j | gdd} WnHt jk r}z|j}d} WYdd}~Xn$tk rd }d} Yn Xt| } tt d r8t j|}t j|rs*      $Y