HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python3.5/__pycache__/_osx_support.cpython-35.pyc


FaJ@sdZddlZddlZddlZddddgZd0Zd1ZdZdddZddZ	ddZ
daddZddZ
ddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd,dZd-dZd.dZd/dZdS)2zShared OS X support functions.Ncompiler_fixupcustomize_config_varscustomize_compilerget_platform_osxCFLAGSLDFLAGSCPPFLAGS
BASECFLAGS	BLDSHAREDLDSHAREDCCCXX	PY_CFLAGS
PY_LDFLAGSPY_CPPFLAGSPY_CORE_CFLAGSZ_OSX_SUPPORT_INITIAL_cCs|dkrtjd}|jtj}tjj|\}}tjdkrh|dkrh|d}tjj|sx9|D]1}tjj	||}tjj|r|SqWdS|SdS)zTries to find 'executable' in the directories listed in 'path'.

    A string listing directories separated by 'os.pathsep'; defaults to
    os.environ['PATH'].  Returns the complete filename or None if not found.
    NPATHZwin32z.exe)
osenvironsplitpathseppathsplitextsysplatformisfilejoin)
executablerpathsbaseZextpfr""/usr/lib/python3.5/_osx_support.py_find_executables


r$cCsddl}yddl}|j}Wn.tk
rXtdtjfd}YnX|j|F}d||jf}tj	|s|j
jdjSdSWdQRXdS)z0Output from successful command execution or NonerNz/tmp/_osx_support.%szw+bz%s 2>/dev/null >'%s'zutf-8)
contextlibtempfileZNamedTemporaryFileImportErroropenrgetpidclosingnamesystemreaddecodestrip)Z
commandstringr%r&fpcmdr"r"r#_read_output7s
r2cCs#t|p"td|fp"dS)z0Find a build tool on current path or using xcrunz/usr/bin/xcrun -find %s)r$r2)Ztoolnamer"r"r#_find_build_toolJsr4cCstdkrdaytd}Wntk
r6YnbXztjd|j}Wd|jX|dk	rdj|jdj	dddatS)z*Return the OS X system version as a stringNr3z0/System/Library/CoreServices/SystemVersion.plistz=<key>ProductUserVisibleVersion</key>\s*<string>(.*?)</string>.)
_SYSTEM_VERSIONr(OSErrorresearchr-closergroupr)r!mr"r"r#_get_system_versionSs

	+r?cCs1x*t|D]}|jtr
||=q
WdS)z-Remove original unmodified values for testingN)list
startswith_INITPRE)_config_varskr"r"r#_remove_original_valuesqsrEcCsJ|j|d}||kr<t||kr<||t|<|||<dS)z@Save modified and original unmodified value of configuration varr3N)getrB)rCcvZnewvalueZoldvaluer"r"r#_save_modified_valuexsrHcCsjt}|rPy&tdd|jdD}Wntk
rOd}YnX|rft|dkSdS)	z=Returns True if universal builds are supported on this systemcss|]}t|VqdS)N)int).0ir"r"r#	<genexpr>sz-_supports_universal_builds.<locals>.<genexpr>r5r3
F)rMrN)r?tupler
ValueErrorbool)Zosx_versionr"r"r#_supports_universal_buildss	&
rRcCs5dtjkr|S|djd}}t|sFtd}nXtjj|jdrtd|j	ddf}|rd|krtd}|st
d	||kr1xrtD]j}||kr|tjkr||j}|d
kr|n|d|d<t||dj
|qW|S)
z7Find appropriate C compiler for extension module buildsrrZclangZgccz'%s' --version'z'"'"'zllvm-gcczCannot locate working compilerr
z++ )rrrr$r4rbasenamerAr2replaceSystemError_COMPILER_CONFIG_VARSrHr)rCZccZoldccdatarGZcv_splitr"r"r#_find_appropriate_compilers(	
 rZcCszxstD]k}||kr|tjkr||}tjdd|tj}tjdd|}t|||qW|S)z5Remove all universal build arguments from config varsz
-arch\s+\w+\srTz-isysroot [^ 	]*)_UNIVERSAL_CONFIG_VARSrrr:subASCIIrH)rCrGflagsr"r"r#_remove_universal_flagss

r_cCsdtjkr|Stjd|ddk	rtjd|djddf}|rxXtD]P}||krb|tjkrb||}tjdd	|}t|||qbW|S)
z-Remove any unsupported archs from config varsrz-arch\s+ppcrNzNecho 'int main{};' | '%s' -c -arch ppc -x c -o /dev/null /dev/null 2>/dev/nullrSz'"'"'z-arch\s+ppc\w*\srT)	rrr:r;r,rVr[r\rH)rCZstatusrGr^r"r"r#_remove_unsupported_archss	

r`cCsdtjkrtjd}xgtD]_}||kr#d||kr#||}tjdd|}|d|}t|||q#W|S)z2Allow override of all archs with ARCHFLAGS env var	ARCHFLAGSz-archz
-arch\s+\w+\srT)rrr[r:r\rH)rCZarchrGr^r"r"r#_override_all_archss


rbcCs|jdd}tjd|}|dk	r|jd}tjj|sxXtD]P}||krX|tjkrX||}tj	dd|}t
|||qXW|S)z+Remove references to any SDKs not availablerr3z-isysroot\s+(\S+)Nr6z-isysroot\s+\S+(?:\s|$)rT)rFr:r;r=rrexistsr[rr\rH)rCcflagsr>ZsdkrGr^r"r"r#_check_for_unavailable_sdks

recCsd}}t|}ts,d}}nd|k}d|k}|sYdtjkrx>y$|jd}|||d=Wq\tk
rPYq\Xq\Wdtjkr|r|tjdj}|rx>y$|jd}|||d=Wqtk
r	PYqXqWd}d|kr@|jd}||d}n)d|kri|jd}||d}|rtjj|rd	d
l	m
}|jd||jd|S)
ae
    This function will strip '-isysroot PATH' and '-arch ARCH' from the
    compile flags if the user has specified one them in extra_compile_flags.

    This is needed because '-arch ARCH' adds another architecture to the
    build, without a way to remove an architecture. Furthermore GCC will
    barf if multiple '-isysroot' arguments are present.
    FTz-archz	-isysrootrar7Nr6r)logz4Compiling with an SDK that doesn't seem to exist: %sz$Please check your Xcode installation)r@rRrrindexrPrrisdirZ	distutilsrfwarn)Zcompiler_soZcc_argsZ	stripArchZstripSysrootrgZsysrootidxrfr"r"r#r0sF	
	




	
cCs+tst|t|t||S)aCustomize Python build configuration variables.

    Called internally from sysconfig with a mutable mapping
    containing name/value pairs parsed from the configured
    makefile used to build this interpreter.  Returns
    the mapping updated as needed to reflect the environment
    in which the interpreter is running; in the case of
    a Python from a binary installer, the installed
    environment may be very different from the build
    environment, i.e. different OS levels, different
    built tools, different available CPU architectures.

    This customization is performed whenever
    distutils.sysconfig.get_config_vars() is first
    called.  It may be used in environments where no
    compilers are present, i.e. when installing pure
    Python dists.  Customization of compiler paths
    and detection of unavailable archs is deferred
    until the first extension module build is
    requested (in distutils.sysconfig.customize_compiler).

    Currently called from distutils.sysconfig
    )rRr_rbre)rCr"r"r#rps
	


cCs"t|t|t||S)zCustomize compiler path and configuration variables.

    This customization is performed when the first
    extension module build is requested
    in distutils.sysconfig.customize_compiler).
    )rZr`rb)rCr"r"r#rs	


c
Cs|jdd}tp|}|p*|}|r|}d}|jtd|jdd}|ry0tdd|jddd	D}Wqtk
rd}YqXnd}|dkrd|jkrd
}tjd|}tt	t
|}t|dkr(|d}q|dkr=d
}q|d krRd}q|d!krgd}q|d"kr|d}q|d#krd}qtd|fnN|dkrtj
d$krd}n*|d%krtj
d&krd}nd}|||fS)'z Filter values for get_platform()ZMACOSX_DEPLOYMENT_TARGETr3Zmacosxrcss|]}t|VqdS)N)rI)rJrKr"r"r#rLsz#get_platform_osx.<locals>.<genexpr>r5rr7rMrNz-archZfatz
-arch\s+(\S+)r6i386ppcx86_64ZintelZfat3ppc64Zfat64Z	universalz%Don't know machine value for archs=%r PowerPCPower_Macintosh)rMr)rMr)rMrN)rkrl)rkrm)rkrlrm)rnrm)rkrlrnrml)rprql)rFr?rBrOrrPr/r:findallsortedsetlenrmaxsize)rCZosnamereleasemachineZmacverZ
macreleaserdZarchsr"r"r#rsP

0

							)rrrr	r
rrr
rrrr)r
rrr
)__doc__rr:r__all__r[rXrBr$r2r4r8r?rErHrRrZr_r`rbrerrrrr"r"r"r#<module>s<	>(@)