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.7/__pycache__/_osx_support.cpython-37.pyc
B

îÇ{a¯Jã@s¾dZddlZddlZddlZddddgZdZdZd	Zd&d
d„Zdd
„Z	dd„Z
dadd„Zdd„Z
dd„Zdd„Zdd„Zdd„Zdd„Zdd„Zd d!„Zd"d„Zd#d„Zd$d„Zd%d„ZdS)'zShared OS X support functions.éNÚcompiler_fixupÚcustomize_config_varsÚcustomize_compilerÚget_platform_osx)ÚCFLAGSZLDFLAGSZCPPFLAGSZ
BASECFLAGSÚ	BLDSHAREDÚLDSHAREDÚCCÚCXXZ	PY_CFLAGSZ
PY_LDFLAGSZPY_CPPFLAGSZPY_CORE_CFLAGS)rrr	r
Z_OSX_SUPPORT_INITIAL_cCsŒ|dkrtjd}| tj¡}tj |¡\}}tjdkrH|dkrH|d}tj |¡s„x*|D]"}tj 	||¡}tj |¡rZ|SqZWdS|SdS)zÚTries 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.
    NÚPATHZwin32z.exe)
ÚosÚenvironÚsplitÚpathsepÚpathÚsplitextÚsysÚplatformÚisfileÚjoin)Ú
executablerÚpathsÚbaseZextÚpÚf©rú"/usr/lib/python3.7/_osx_support.pyÚ_find_executables

rc	CsŠddl}yddl}| ¡}Wn(tk
rDtdt ¡fdƒ}YnX| |¡0}d||jf}t 	|¡s|| 
¡ d¡ ¡SdSQRXdS)z0Output from successful command execution or NonerNz/tmp/_osx_support.%szw+bz%s 2>/dev/null >'%s'zutf-8)
Ú
contextlibÚtempfileZNamedTemporaryFileÚImportErrorÚopenrÚgetpidÚclosingÚnameÚsystemÚreadÚdecodeÚstrip)Z
commandstringrrÚfpÚcmdrrrÚ_read_output7sr+cCst|ƒptd|fƒpdS)z0Find a build tool on current path or using xcrunz/usr/bin/xcrun -find %sÚ)rr+)ZtoolnamerrrÚ_find_build_toolJsr-cCsxtdkrtdaytdƒ}Wntk
r,YnHXzt d| ¡¡}Wd| ¡X|dk	rtd | d¡ 	d¡dd…¡atS)z*Return the OS X system version as a stringNr,z0/System/Library/CoreServices/SystemVersion.plistz=<key>ProductUserVisibleVersion</key>\s*<string>(.*?)</string>Ú.éé)
Ú_SYSTEM_VERSIONr!ÚOSErrorÚreÚsearchr&ÚcloserÚgroupr)rÚmrrrÚ_get_system_versionSs

r8cCs&x t|ƒD]}| t¡r
||=q
WdS)z-Remove original unmodified values for testingN)ÚlistÚ
startswithÚ_INITPRE)Ú_config_varsÚkrrrÚ_remove_original_valuesqs
r>cCs8| |d¡}||kr,t||kr,||t|<|||<dS)z@Save modified and original unmodified value of configuration varr,N)Úgetr;)r<ÚcvZnewvalueZoldvaluerrrÚ_save_modified_valuexsrAcCsTtƒ}|r@ytdd„| d¡Dƒƒ}Wntk
r>d}YnX|rPt|dkƒSdS)z=Returns True if universal builds are supported on this systemcss|]}t|ƒVqdS)N)Úint)Ú.0Úirrrú	<genexpr>Šsz-_supports_universal_builds.<locals>.<genexpr>r.r,)é
éF)r8ÚtuplerÚ
ValueErrorÚbool)Zosx_versionrrrÚ_supports_universal_builds€s
rKcCsÞdtjkr|S|d ¡d}}t|ƒs4tdƒ}n<tj |¡ d¡rptd| 	dd¡fƒ}|rpd|krptdƒ}|s|t
d	ƒ‚||krÚxTtD]L}||krŠ|tjkrŠ|| ¡}|d
kr¸|n|d|d<t||d 
|¡ƒqŠW|S)
z7Find appropriate C compiler for extension module buildsr	rZclangZgccz'%s' --versionú'z'"'"'zllvm-gcczCannot locate working compilerr
z++ú )rr
rrr-rÚbasenamer:r+ÚreplaceÚSystemErrorÚ_COMPILER_CONFIG_VARSrAr)r<ZccZoldccÚdatar@Zcv_splitrrrÚ_find_appropriate_compilers(


rScCsZxTtD]L}||kr|tjkr||}tjdd|tjd}t dd|¡}t|||ƒqW|S)z5Remove all universal build arguments from config varsz
-arch\s+\w+\srM)Úflagsz-isysroot [^ 	]*)Ú_UNIVERSAL_CONFIG_VARSrr
r3ÚsubÚASCIIrA)r<r@rTrrrÚ_remove_universal_flagsÎs
rXcCsˆdtjkr|St d|d¡dk	r„t d|d dd¡f¡}|r„x@tD]8}||krH|tjkrH||}t dd	|¡}t|||ƒqHW|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/nullrLz'"'"'z-arch\s+ppc\w*\srM)	rr
r3r4r%rOrUrVrA)r<Zstatusr@rTrrrÚ_remove_unsupported_archsÜs
	
rYcCshdtjkrdtjd}xNtD]F}||krd||kr||}t dd|¡}|d|}t|||ƒqW|S)z2Allow override of all archs with ARCHFLAGS env varÚ	ARCHFLAGSz-archz
-arch\s+\w+\srM)rr
rUr3rVrA)r<Zarchr@rTrrrÚ_override_all_archss


r[cCs|| dd¡}t d|¡}|dk	rx| d¡}tj |¡sxx@tD]8}||kr<|tjkr<||}t 	dd|¡}t
|||ƒq<W|S)z+Remove references to any SDKs not availablerr,z-isysroot\s+(\S+)Nr/z-isysroot\s+\S+(?:\s|$)rM)r?r3r4r6rrÚexistsrUr
rVrA)r<Úcflagsr7Zsdkr@rTrrrÚ_check_for_unavailable_sdks

r^cCsTd}}t|ƒ}tƒs d}}nd|k}d|k}|s>dtjkrxx8y| d¡}|||d…=Wq@tk
rrPYq@Xq@Wdtjkr˜|s˜|tjd ¡}|rÖx8y| d¡}|||d…=Wqžtk
rÐPYqžXqžWd}d|krú| d¡}||d}n d|kr| d¡}||d}|rPtj |¡sPd	d
l	m
}| d|¡| d¡|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	-isysrootrZr0Nr/r)Úlogz4Compiling with an SDK that doesn't seem to exist: %sz$Please check your Xcode installation)r9rKrr
ÚindexrIrrÚisdirZ	distutilsr_Úwarn)Zcompiler_soZcc_argsZ	stripArchZstripSysrootr`ZsysrootÚidxr_rrrr0sF	






cCs"tƒst|ƒt|ƒt|ƒ|S)aöCustomize 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
    )rKrXr[r^)r<rrrrps
cCst|ƒt|ƒt|ƒ|S)zÅCustomize compiler path and configuration variables.

    This customization is performed when the first
    extension module build is requested
    in distutils.sysconfig.customize_compiler).
    )rSrYr[)r<rrrr™s	cCs|| dd¡}tƒp|}|p|}|rr|}d}| td| dd¡¡}|rˆy$tdd„| d¡dd	…Dƒƒ}WqŒtk
r„d
}YqŒXnd
}|dkr6d| ¡kr6d
}t d|¡}tt	t
|ƒƒƒ}t|ƒdkrÚ|d}nZ|dkrèd
}nL|dkröd}n>|dkrd}n.|dkrd}n|dkr&d}ntd|fƒ‚n<|dkrRtj
dkrrd}n |dkrrtj
dkrnd}nd}|||fS) z Filter values for get_platform()ZMACOSX_DEPLOYMENT_TARGETr,Zmacosxrcss|]}t|ƒVqdS)N)rB)rCrDrrrrEÇsz#get_platform_osx.<locals>.<genexpr>r.rr0)rFr)rFrGz-archZfatz
-arch\s+(\S+)r/)Úi386Úppc)rdÚx86_64Zintel)rdrerfZfat3)Úppc64rfZfat64)rdrergrfZ	universalz%Don't know machine value for archs=%rrdlrf)ZPowerPCZPower_Macintoshrgre)r?r8r;rHrrIr(r3ÚfindallÚsortedÚsetÚlenrÚmaxsize)r<ZosnameÚreleaseÚmachineZmacverZ
macreleaser]Zarchsrrrr­sP


$





)N)Ú__doc__rr3rÚ__all__rUrQr;rr+r-r1r8r>rArKrSrXrYr[r^rrrrrrrrÚ<module>s6
>(@)