AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/setuptools/_distutils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python3/dist-packages/setuptools/_distutils/__pycache__/cygwinccompiler.cpython-310.pyc
o

�_�a�C�@s�dZddlZddlZddlZddlmZmZmZddlZddl	Z
ddlmZddl
mZddlmZmZmZmZddl	mZddlmZd	d
�ZGdd�de�ZGd
d�de�ZdZdZdZdd�Ze�d�Zdd�Z dd�Z!dd�Z"dS)adistutils.cygwinccompiler

Provides the CygwinCCompiler class, a subclass of UnixCCompiler that
handles the Cygwin port of the GNU C compiler to Windows.  It also contains
the Mingw32CCompiler class which handles the mingw32 port of GCC (same as
cygwin in no-cygwin mode).
�N)�Popen�PIPE�check_output)�
UnixCCompiler)�
write_file)�DistutilsExecError�CCompilerError�CompileError�UnknownFileError)�LooseVersion)�find_executablecCs�tj�d�}|dkr\tj|d|d�}|dkrdgS|dkr#dgS|d	kr*d
gS|dkr1dgS|d
kr8dgS|dkr?dgS|dkrFdgSdt|�krUdkrVddgStd|��dS)zaInclude the appropriate MSVC runtime library if Python was built
    with MSVC 7.0 or later.
    zMSC v.�����
�1300�msvcr70�1310�msvcr71�1400�msvcr80�1500�msvcr90�1600�msvcr100�1700�msvcr110�1800�msvcr120ili��ucrt�vcruntime140zUnknown MS Compiler version %s N)�sys�version�find�int�
ValueError)�msc_pos�msc_ver�r'�G/usr/lib/python3/dist-packages/setuptools/_distutils/cygwinccompiler.py�	get_msvcr@s,��r)c@sZeZdZdZdZdZdZdZdZdZ	dZ
dd
d�Zdd
�Z				ddd�Z
ddd�ZdS)�CygwinCCompilerz? Handles the Cygwin port of the GNU C compiler to Windows.
    �cygwinz.o�.az.dllzlib%s%sz%s%sz.exercCsFt�||||�t�\}}|�d||f�|tur!|�d|�tj�dd�|_	tj�dd�|_
d|j	vrgt�\|_|_
|_|�|jd|j|j
|jf�|j
dkrY|j	|_nd	|_|j
d
krdd}n	d}n|j	|_d}|jd
|j	d|j	d
|j
d|j	d|j|fd�d|j	vr�|jdkr�dg|_|�d�dSt�|_dS)Nz%Python's GCC status: %s (details: %s)z�Python's pyconfig.h doesn't seem to support your compiler. Reason: %s. Compiling may fail because of undefined preprocessor macros.�CC�gcc�CXXzg++z: gcc %s, ld %s, dllwrap %s
z2.10.90�dllwrap�2.13�-shared�
-mdll -staticz%s -mcygwin -O -Wallz%s -mcygwin -mdll -O -Wallz%s -mcygwinz%s -mcygwin %s��compiler�compiler_so�compiler_cxx�
linker_exe�	linker_so�2.91.57�msvcrtz,Consider upgrading to a newer version of gcc)r�__init__�check_config_h�debug_print�CONFIG_H_OK�warn�os�environ�get�cc�cxx�get_versions�gcc_version�
ld_version�dllwrap_version�
compiler_type�
linker_dll�set_executables�
dll_librariesr))�self�verbose�dry_run�force�status�details�
shared_optionr'r'r(r<nsX
���
�
��



���zCygwinCCompiler.__init__c
Cs�|dks|dkr&z
|�dd|d|g�WdSty%}zt|��d}~wwz|�|j||d|g|�WdStyH}zt|��d}~ww)z:Compiles the source by spawning GCC and windres if needed.�.rc�.res�windresz-iz-oN)�spawnrr	r6)rN�obj�src�ext�cc_args�extra_postargs�pp_opts�msgr'r'r(�_compile�s�����zCygwinCCompiler._compileNcCsHt�|
pg�}
t�|pg�}t�|pg�}|�|j�|dur�||jks)|jdkr�tj�|d�}tj�tj�	|��\}}tj�
||d�}tj�
|d|d�}dtj�	|�dg}|D]}|�|�q]|�t
||fd	|�|jd
kr�|
�d|g�|
�d|g�n|�|�|	s�|
�d
�t�||||||||d|	|
|||
�dS)zLink the objects.Nr.rz.def�libr,z
LIBRARY %s�EXPORTSz
writing %sr0z--output-libz--defz-s)�copy�extendrM�
EXECUTABLErKrA�path�dirname�splitext�basename�join�append�executerr�link)rN�target_desc�objects�output_filename�
output_dir�	libraries�library_dirs�runtime_library_dirs�export_symbols�debug�
extra_preargsr]�
build_temp�target_lang�temp_dir�dll_name�
dll_extension�def_file�lib_file�contents�symr'r'r(rm�sB	
���


�zCygwinCCompiler.link�cCs�|durd}g}|D]H}tj�tj�|��\}}||jddgvr)td||f��|r1tj�|�}|dvrE|�tj�||||j	��q
|�tj�|||j	��q
|S)z#Adds supports for rc and res files.Nr�rUrVz"unknown file type '%s' (from '%s'))rVrU)
rArfrh�normcase�src_extensionsr
rirkrj�
obj_extension)rN�source_filenames�	strip_dirrq�	obj_names�src_name�baser[r'r'r(�object_filenamess&���z CygwinCCompiler.object_filenames�rrr)
NNNNNrNNNN)rr�)�__name__�
__module__�__qualname__�__doc__rJr��static_lib_extension�shared_lib_extension�static_lib_format�shared_lib_format�
exe_extensionr<r`rmr�r'r'r'r(r*cs"
@
�Nr*c@seZdZdZdZddd�ZdS)�Mingw32CCompilerz@ Handles the Mingw32 port of the GNU C compiler to Windows.
    �mingw32rc	Cs�t�||||�d|jvr|jdkrd}nd}d|jvr$|jdkr$d}nd}t|j�r/td��|jd	|jd
|jd	|jd|jd|j	||fd
�g|_
t�|_
dS)Nr.r1r3r2r:z--entry _DllMain@12r�z1Cygwin gcc cannot be used with --compiler=mingw32z%s -O -Wallz%s -mdll -O -Wallz%sz%s %s %sr4)r*r<rDrHrG�is_cygwinccrrLrErKrMr))rNrOrPrQrT�entry_pointr'r'r(r<'s.
����zMingw32CCompiler.__init__Nr�)r�r�r�r�rJr<r'r'r'r(r�"sr��okznot ok�	uncertainc
Cs�ddlm}dtjvrtdfSdtjvrtdfS|��}z(t|�}zd|��vr4td|fW|��WSt	d	|fW|��WS|��wt
y_}ztd
||jffWYd}~Sd}~ww)awCheck if the current Python installation appears amenable to building
    extensions with GCC.

    Returns a tuple (status, details), where 'status' is one of the following
    constants:

    - CONFIG_H_OK: all is well, go ahead and compile
    - CONFIG_H_NOTOK: doesn't look good
    - CONFIG_H_UNCERTAIN: not sure -- unable to read pyconfig.h

    'details' is a human-readable string explaining the situation.

    Note there are two ways to conclude "OK": either 'sys.version' contains
    the string "GCC" (implying that this Python was built with GCC), or the
    installed "pyconfig.h" contains the string "__GNUC__".
    r)�	sysconfig�GCCzsys.version mentions 'GCC'�Clangzsys.version mentions 'Clang'�__GNUC__z'%s' mentions '__GNUC__'z '%s' does not mention '__GNUC__'zcouldn't read '%s': %sN)
�	distutilsr�r r!r?�get_config_h_filename�open�read�close�CONFIG_H_NOTOK�OSError�CONFIG_H_UNCERTAIN�strerror)r��fn�config_h�excr'r'r(r=Ws(

����r=s(\d+\.\d+(\.\d+)*)cCs�|��d}t|�durdSt|dtd�j}z
|��}W|��n|��wt�|�}|dur1dS|�	d��
�}tj�
��t|�Wd�S1sLwYdS)z�Find the version of an executable by running `cmd` in the shell.

    If the command is not found, or the output does not match
    `RE_VERSION`, returns None.
    rNT)�shell�stdout�)�splitrrrr�r�r��
RE_VERSION�search�group�decoder�r!�suppress_known_deprecationr)�cmd�
executable�out�
out_string�result�ver_strr'r'r(�_find_exe_version�s

$�r�cCsgd�}tdd�|D��S)zg Try to find out the versions of gcc, ld and dllwrap.

    If not possible it returns None for it.
    )zgcc -dumpversionzld -vzdllwrap --versioncSsg|]}t|��qSr')r�)�.0r�r'r'r(�
<listcomp>�sz get_versions.<locals>.<listcomp>)�tuple)�commandsr'r'r(rF�srFcCst|dg�}|���d�S)zCTry to determine if the compiler that would be used is from cygwin.z-dumpmachinescygwin)r�strip�endswith)rDr�r'r'r(r��sr�)#r�rAr rc�
subprocessrrr�re�distutils.versionr��distutils.unixccompilerr�distutils.file_utilr�distutils.errorsrrr	r
r�distutils.spawnrr)r*r�r?r�r�r=�compiler�r�rFr�r'r'r'r(�<module>s01#@1
/

Anon7 - 2022
AnonSec Team