$44 GRAYBYTE WORDPRESS FILE MANAGER $25

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python34/lib64/python3.4/distutils/command/__pycache__/

HOME
Current File : /opt/alt/python34/lib64/python3.4/distutils/command/__pycache__//config.cpython-34.pyo
�
h f$3�@s�dZddlZddlZddlZddlmZddlmZddlm	Z	ddl
mZidd6d	d
6ZGdd�de�Z
dd
d�ZdS)a�distutils.command.config

Implements the Distutils 'config' command, a (mostly) empty command class
that exists mainly to be sub-classed by specific module distributions and
applications.  The idea is that while every "config" command is different,
at least they're all named the same, and users always see "config" in the
list of standard commands.  Also, this is a good place to put common
configure-like tasks: "try to compile this C code", or "figure out where
this header file lives".
�N)�Command)�DistutilsExecError)�customize_compiler)�logz.c�cz.cxxzc++c@sieZdZdZd>d?d@dAdBdCdDdEdFg	Zdd�Zdd�Zdd�Zd d!�Zd"d#�Z	d$d%�Z
d&d'�Zd(d)�Zd*d+�Z
dddd,d-d.�Zdddd,d/d0�Zddd,d1d2�Zddddd,d3d4�Zddddd,d5d6�Zddddd7d7d8d9�Zdddgd:d;�Zddd,d<d=�ZdS)G�configzprepare to build�	compiler=N�specify the compiler type�cc=�specify the compiler executable�
include-dirs=�I�.list of directories to search for header files�define=�D�C preprocessor macros to define�undef=�U�!C preprocessor macros to undefine�
libraries=�l�!external C libraries to link with�
library-dirs=�L�.directories to search for external C libraries�noisy�1show every action (compile, link, run, ...) taken�dump-source�=dump generated source files before attempting to compile themcCsLd|_d|_d|_d|_d|_d|_d|_g|_dS)N�)�compilerZcc�include_dirs�	libraries�library_dirsr�dump_source�
temp_files)�self�r'�=/opt/alt/python34/lib64/python3.4/distutils/command/config.py�initialize_options3s							zconfig.initialize_optionscCs�|jdkr'|jjpg|_n-t|jt�rT|jjtj�|_n|jdkrog|_n$t|jt�r�|jg|_n|jdkr�g|_n-t|jt�r�|jjtj�|_ndS)N)	r!Zdistribution�
isinstance�str�split�os�pathsepr"r#)r&r'r'r(�finalize_optionsBszconfig.finalize_optionscCsdS)Nr')r&r'r'r(�runRsz
config.runcCs�ddlm}m}t|j|�s�|d|jd|jdd�|_t|j�|jrx|jj|j�n|j	r�|jj
|j	�n|jr�|jj|j�q�ndS)z^Check that 'self.compiler' really is a CCompiler object;
        if not, make it one.
        r)�	CCompiler�new_compilerr �dry_runZforcerN)
�distutils.ccompilerr1r2r*r r3rr!Zset_include_dirsr"Z
set_librariesr#Zset_library_dirs)r&r1r2r'r'r(�_check_compilerYs
			zconfig._check_compilercCs�dt|}t|d�}|rUx|D]}|jd|�q*W|jd�n|j|�|ddkr�|jd�n|j�|S)NZ_configtest�wz#include <%s>
�
r���)�LANG_EXT�open�write�close)r&�body�headers�lang�filename�file�headerr'r'r(�_gen_temp_sourcefileks


zconfig._gen_temp_sourcefilecCsT|j|||�}d}|jj||g�|jj||d|�||fS)Nz
_configtest.ir!)rCr%�extendr Z
preprocess)r&r=r>r!r?�src�outr'r'r(�_preprocessxs
zconfig._preprocesscCs�|j|||�}|jr2t|d|�n|jj|g�\}|jj||g�|jj|gd|�||fS)Nzcompiling '%s':r!)rCr$�	dump_filer Zobject_filenamesr%rD�compile)r&r=r>r!r?rE�objr'r'r(�_compiles	zconfig._compilec
	Cs�|j||||�\}}tjjtjj|��d}	|jj|g|	d|d|d|�|jjdk	r�|	|jj}	n|jj	|	�|||	fS)Nrr"r#Ztarget_lang)
rKr-�path�splitext�basenamer Zlink_executableZ
exe_extensionr%�append)
r&r=r>r!r"r#r?rErJ�progr'r'r(�_link�s"zconfig._linkcGso|s|j}g|_ntjddj|��x4|D],}ytj|�Wq;tk
rfYq;Xq;WdS)Nzremoving: %s� )r%r�info�joinr-�remove�OSError)r&�	filenamesr@r'r'r(�_clean�s	

z
config._cleanrcCscddlm}|j�d}y|j||||�Wn|k
rTd}YnX|j�|S)aQConstruct a source file from 'body' (a string containing lines
        of C/C++ code) and 'headers' (a list of header files to include)
        and run it through the preprocessor.  Return true if the
        preprocessor succeeded, false if there were any errors.
        ('body' probably isn't of much use, but what the heck.)
        r)�CompileErrorTF)r4rYr5rGrX)r&r=r>r!r?rY�okr'r'r(�try_cpp�s


zconfig.try_cppcCs�|j�|j||||�\}}t|t�rItj|�}nt|�}d}	x9|j�}
|
dkrzPn|j|
�r^d}	Pq^q^W|j	�|j
�|	S)a�Construct a source file (just like 'try_cpp()'), run it through
        the preprocessor, and return true if any line of the output matches
        'pattern'.  'pattern' should either be a compiled regex object or a
        string containing a regex.  If both 'body' and 'headers' are None,
        preprocesses an empty file -- which can be useful to determine the
        symbols the preprocessor and compiler set by default.
        F�T)r5rGr*r+�rerIr:�readline�searchr<rX)r&�patternr=r>r!r?rErFrA�match�liner'r'r(�
search_cpp�s 	


zconfig.search_cppcCs|ddlm}|j�y |j||||�d}Wn|k
rTd}YnXtj|rgdpjd�|j�|S)zwTry to compile a source file built from 'body' and 'headers'.
        Return true on success, false otherwise.
        r)rYTFzsuccess!zfailure.)r4rYr5rKrrSrX)r&r=r>r!r?rYrZr'r'r(�try_compile�s



zconfig.try_compilec

Cs�ddlm}m}|j�y&|j||||||�d}	Wn||fk
rfd}	YnXtj|	rydp|d�|j�|	S)z�Try to compile and link a source file, built from 'body' and
        'headers', to executable form.  Return true on success, false
        otherwise.
        r)rY�	LinkErrorTFzsuccess!zfailure.)r4rYrer5rQrrSrX)
r&r=r>r!r"r#r?rYrerZr'r'r(�try_link�s



zconfig.try_linkc

Cs�ddlm}m}|j�yA|j||||||�\}	}
}|j|g�d}Wn!||tfk
r�d}YnXtj|r�dp�d�|j	�|S)z�Try to compile, link to an executable, and run a program
        built from 'body' and 'headers'.  Return true on success, false
        otherwise.
        r)rYreTFzsuccess!zfailure.)
r4rYrer5rQZspawnrrrSrX)
r&r=r>r!r"r#r?rYrerErJZexerZr'r'r(�try_run�s


zconfig.try_runrc	Cs�|j�g}|r*|jd|�n|jd�|rQ|jd|�n|jd|�|jd�dj|�d}|j|||||�S)a�Determine if function 'func' is available by constructing a
        source file that refers to 'func', and compiles and links it.
        If everything succeeds, returns true; otherwise returns false.

        The constructed source file starts out by including the header
        files listed in 'headers'.  If 'decl' is true, it then declares
        'func' (as "int func()"); you probably shouldn't supply 'headers'
        and set 'decl' true in the same call, or you might get errors about
        a conflicting declarations for 'func'.  Finally, the constructed
        'main()' function either references 'func' or (if 'call' is true)
        calls it.  'libraries' and 'library_dirs' are used when
        linking.
        z
int %s ();z
int main () {z  %s();z  %s;�}r7)r5rOrTrf)	r&�funcr>r!r"r#Zdecl�callr=r'r'r(�
check_funcs


zconfig.check_funccCs*|j�|jd|||g||�S)a�Determine if 'library' is available to be linked against,
        without actually checking that any particular symbols are provided
        by it.  'headers' will be used in constructing the source file to
        be compiled, but the only effect of this is to check if all the
        header files listed are available.  Any libraries listed in
        'other_libraries' will be included in the link, in case 'library'
        has symbols that depend on other libraries.
        zint main (void) { })r5rf)r&Zlibraryr#r>r!Zother_librariesr'r'r(�	check_lib6s

zconfig.check_libcCs|jddd|gd|�S)z�Determine if the system header file named by 'header_file'
        exists and can be found by the preprocessor; return true if so,
        false otherwise.
        r=z
/* No body */r>r!)r[)r&rBr!r#r?r'r'r(�check_headerDszconfig.check_header)rNr	)r
Nr)rr
r)rrr)rrr)rrr)rrr)znoisyNr)rNr)�__name__�
__module__�__qualname__ZdescriptionZuser_optionsr)r/r0r5rCrGrKrQrXr[rcrdrfrgrkrlrmr'r'r'r(rsT	
				
rc
Csb|dkr tjd|�n
tj|�t|�}ztj|j��Wd|j�XdS)zjDumps a file content into log.info.

    If head is not None, will be dumped before the file content.
    Nz%s)rrSr:�readr<)r@�headrAr'r'r(rHNs
rH)�__doc__�sysr-r]Zdistutils.corerZdistutils.errorsrZdistutils.sysconfigrZ	distutilsrr9rrHr'r'r'r(�<module>
s$�:


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.33 AM
root / linksafe
0755
__init__.cpython-34.pyc
0.558 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__init__.cpython-34.pyo
0.558 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist.cpython-34.pyc
3.938 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist.cpython-34.pyo
3.938 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_dumb.cpython-34.pyc
3.875 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_dumb.cpython-34.pyo
3.875 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_msi.cpython-34.pyc
21.328 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_msi.cpython-34.pyo
21.229 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_rpm.cpython-34.pyc
13.981 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_rpm.cpython-34.pyo
13.905 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_wininst.cpython-34.pyc
8.637 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
bdist_wininst.cpython-34.pyo
8.565 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build.cpython-34.pyc
3.972 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build.cpython-34.pyo
3.972 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_clib.cpython-34.pyc
5.317 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_clib.cpython-34.pyo
5.317 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_ext.cpython-34.pyc
16.728 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_ext.cpython-34.pyo
16.728 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_py.cpython-34.pyc
11.262 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_py.cpython-34.pyo
11.191 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_scripts.cpython-34.pyc
4.633 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
build_scripts.cpython-34.pyo
4.633 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
check.cpython-34.pyc
5.144 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
check.cpython-34.pyo
5.144 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
clean.cpython-34.pyc
2.317 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
clean.cpython-34.pyo
2.317 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
config.cpython-34.pyc
10.804 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
config.cpython-34.pyo
10.804 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install.cpython-34.pyc
14.774 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install.cpython-34.pyo
14.774 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_data.cpython-34.pyc
2.49 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_data.cpython-34.pyo
2.49 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_egg_info.cpython-34.pyc
3.12 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_egg_info.cpython-34.pyo
3.12 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_headers.cpython-34.pyc
1.808 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_headers.cpython-34.pyo
1.808 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_lib.cpython-34.pyc
5.557 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_lib.cpython-34.pyo
5.557 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_scripts.cpython-34.pyc
2.326 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
install_scripts.cpython-34.pyo
2.326 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
register.cpython-34.pyc
9.038 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
register.cpython-34.pyo
9.038 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
sdist.cpython-34.pyc
13.861 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
sdist.cpython-34.pyo
13.861 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
upload.cpython-34.pyc
5.667 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
upload.cpython-34.pyo
5.667 KB
17 Apr 2024 5.10 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF