One Hat Cyber Team
Your IP :
52.14.138.123
Server IP :
103.133.214.160
Server :
Linux venus.ewebguru.net 4.18.0-553.30.1.el8_10.x86_64 #1 SMP Tue Nov 26 02:30:26 EST 2024 x86_64
Server Software :
Apache/2
PHP Version :
8.1.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
lib64
/
python3.6
/
__pycache__
/
View File Name :
_osx_support.cpython-36.pyc
3 � \�J��������������� ���@���s����d�Z�ddlZddlZddlZddddgZd1Zd2ZdZd3dd�Zdd��Z dd��Z dadd��Zdd��Z dd ��Zd!d"��Zd#d$��Zd%d&��Zd'd(��Zd)d*��Zd+d,��Zd-d��Zd.d��Zd/d��Zd0d��ZdS�)4zShared OS X support functions.�����N�compiler_fixup�customize_config_vars�customize_compiler�get_platform_osx�CFLAGS�LDFLAGS�CPPFLAGS� BASECFLAGS� BLDSHARED�LDSHARED�CC�CXX� PY_CFLAGS� PY_LDFLAGS�PY_CPPFLAGS�PY_CORE_CFLAGS�PY_CORE_LDFLAGSZ_OSX_SUPPORT_INITIAL_c�������������C���s����|dkrt�jd�}|jt�j�}t�jj|��\}}tjdkrH|dkrH|�d�}�t�jj|��s�x*|D�]"}t�jj ||��}t�jj|�rZ|S�qZW�dS�|�S�dS�)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/lib64/python3.6/_osx_support.py�_find_executable���s���� r%���c�������������C���s����ddl�}yddl}|j��}W�n(�tk rD���tdtj��f�d�}Y�nX�|j|��0}d|�|jf�}tj |�s||j ��jd�j��S�dS�Q�R�X�dS�)z0Output from successful command execution or Noner���Nz/tmp/_osx_support.%szw+bz%s 2>/dev/null >'%s'zutf-8) � contextlib�tempfileZNamedTemporaryFile�ImportError�openr����getpid�closing�name�system�read�decode�strip)Z commandstringr&���r'����fp�cmdr#���r#���r$����_read_output7���s����r3���c�������������C���s���t�|��ptd|�f��pdS�)z0Find a build tool on current path or using xcrunz/usr/bin/xcrun -find %s��)r%���r3���)Ztoolnamer#���r#���r$����_find_build_toolJ���s����r5���c��������������C���sx���t�dkrtda�ytd�}�W�n�tk r,���Y�nHX�ztjd|�j���}W�d|�j���X�|dk rtdj|jd�j d�dd���a�t�S�)z*Return the OS X system version as a stringNr4���z0/System/Library/CoreServices/SystemVersion.plistz=<key>ProductUserVisibleVersion</key>\s*<string>(.*?)</string>�.��������) �_SYSTEM_VERSIONr)����OSError�re�searchr.����closer����groupr���)r"����mr#���r#���r$����_get_system_versionS���s���� r@���c�������������C���s&���x t�|��D�]}|jt�r |�|=�q W�dS�)z-Remove original unmodified values for testingN)�list� startswith�_INITPRE)�_config_vars�kr#���r#���r$����_remove_original_valuesq���s���� rF���c�������������C���s8���|�j�|d�}||kr,t|�|�kr,||�t|�<�||�|<�dS�)z@Save modified and original unmodified value of configuration varr4���N)�getrC���)rD����cvZnewvalueZoldvaluer#���r#���r$����_save_modified_valuex���s����rI���c��������������C���sT���t���}�|�r@ytdd��|�jd�D���}�W�n�tk r>���d}�Y�nX�|�rPt|�dk�S�dS�) z=Returns True if universal builds are supported on this systemc�������������s���s���|�]}t�|�V��qd�S�)N)�int)�.0�ir#���r#���r$���� <genexpr>����s����z-_supports_universal_builds.<locals>.<genexpr>r6���r4���� �������F)rN���rO���)r@����tupler���� ValueError�bool)Zosx_versionr#���r#���r$����_supports_universal_builds����s���� rS���c�������������C���s����dt�jkr|�S�|�d�j��d��}}t|�s4td�}n<t�jj|�jd�rptd|j dd�f��}|rpd|krptd�}|s|t d ��||kr�xTtD�]L}||�kr�|t�jkr�|�|�j��}|d kr�|n|d�|d<�t|�|dj |���q�W�|�S�) z7Find appropriate C compiler for extension module buildsr���r���Zclang�gccz'%s' --version�'z'"'"'zllvm-gcczCannot locate working compilerr ���z++� )r���r���r���r%���r5���r����basenamerB���r3����replace�SystemError�_COMPILER_CONFIG_VARSrI���r���)rD���ZccZoldcc�datarH���Zcv_splitr#���r#���r$����_find_appropriate_compiler����s(���� r\���c�������������C���sZ���xTt�D�]L}||�kr|tjkr|�|�}tjdd|tjd�}tjdd|�}t|�||��qW�|�S�)z5Remove all universal build arguments from config varsz -arch\s+\w+\srV���)�flagsz-isysroot [^ ]*)�_UNIVERSAL_CONFIG_VARSr���r���r;����sub�ASCIIrI���)rD���rH���r]���r#���r#���r$����_remove_universal_flags����s���� ra���c�������������C���s����dt�jkr|�S�tjd|�d��dk r�t�jd|�d�jdd�f��}|r�x@tD�]8}||�krH|t�jkrH|�|�}tjdd |�}t|�||��qHW�|�S�) z-Remove any unsupported archs from config varsr���z-arch\s+ppcr���NzNecho 'int main{};' | '%s' -c -arch ppc -x c -o /dev/null /dev/null 2>/dev/nullrU���z'"'"'z-arch\s+ppc\w*\srV���) r���r���r;���r<���r-���rX���r^���r_���rI���)rD���ZstatusrH���r]���r#���r#���r$����_remove_unsupported_archs����s���� rb���c�������������C���sh���dt�jkrdt�jd�}xNtD�]F}||�krd|�|�kr|�|�}tjdd|�}|d�|�}t|�||��qW�|�S�)z2Allow override of all archs with ARCHFLAGS env var� ARCHFLAGSz-archz -arch\s+\w+\srV���)r���r���r^���r;���r_���rI���)rD���ZarchrH���r]���r#���r#���r$����_override_all_archs��s���� rd���c�������������C���s|���|�j�dd�}tjd|�}|dk rx|jd�}tjj|�sxx@tD�]8}||�kr<|tjkr<|�|�}tj dd|�}t |�||��q<W�|�S�)z+Remove references to any SDKs not availabler���r4���z-isysroot\s+(\S+)Nr7���z-isysroot\s+\S+(?:\s|$)rV���)rG���r;���r<���r>���r���r����existsr^���r���r_���rI���)rD����cflagsr?���ZsdkrH���r]���r#���r#���r$����_check_for_unavailable_sdk��s���� rg���c�������������C���sX��d�}}t�|��}�t��s d�}}nd|k}d|k}|s>dtjkrxx8y|�jd�}|�||d��=�W�q@�tk rr���P�Y�q@X�q@W�dtjkr�|�r�|�tjd�j���}�|r�x8y|�jd�}|�||d��=�W�q��tk r����P�Y�q�X�q�W�d}d|kr�|jd�}||d��}n d|�k�r|�jd�}|�|d��}|�rTtjj|���rTd 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 -isysrootrc���r8���Nr7���r���)�logz4Compiling with an SDK that doesn't seem to exist: %sz$Please check your Xcode installation)rA���rS���r���r����indexrQ���r���r����isdirZ distutilsrh����warn)Zcompiler_soZcc_argsZ stripArchZstripSysrootri���Zsysroot�idxrh���r#���r#���r$���r���0��sF���� c�������������C���s"���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 )rS���ra���rd���rg���)rD���r#���r#���r$���r���p��s ����c�������������C���s���t�|���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). )r\���rb���rd���)rD���r#���r#���r$���r������s���� c���������� ���C���s|��|�j�dd�}t��p|}|p|}|�rr|}d}|�j�td�|�j�dd��}|r�y$tdd��|jd�dd ��D���}W�q��tk r����d}Y�q�X�nd}|dko�d|j��k�r6d }tjd|�}tt t |���}t|�dkr�|d�}n\|dkr�d }nN|d k��r�d}n>|d!k�rd}n.|d"k�rd}n|d#k�r&d}ntd|f���n<|dk�rRtj d$k�rrd}n |d%k�rrtj d&k�rnd}nd}|||fS�)'z Filter values for get_platform()�MACOSX_DEPLOYMENT_TARGETr4���Zmacosxr���c�������������s���s���|�]}t�|�V��qd�S�)N)rJ���)rK���rL���r#���r#���r$���rM������s����z#get_platform_osx.<locals>.<genexpr>r6���r���r8���rN���rO���z-archZfatz -arch\s+(\S+)r7����i386�ppc�x86_64ZintelZfat3�ppc64Zfat64Z universalz%Don't know machine value for archs=%r� ����PowerPC�Power_Macintosh)rN���r���)rN���r���)rN���rO���)rn���ro���)rn���rp���)rn���ro���rp���)rq���rp���)rn���ro���rq���rp���l��������)rs���rt���l��������)rG���r@���rC���rP���r���rQ���r0���r;����findall�sorted�set�lenr����maxsize)rD����osname�release�machineZmacverZ macreleaserf���Zarchsr#���r#���r$���r������sP���� $ ) r���r���r���r ���r ���r���r���r ���r���r���r���r���r���)r ���r���r���r ���)N)�__doc__r���r;���r����__all__r^���rZ���rC���r%���r3���r5���r9���r@���rF���rI���rS���r\���ra���rb���rd���rg���r���r���r���r���r#���r#���r#���r$����<module>���s<������ >(@)