/usr/lib/python3.10/distutils/__pycache__
Edit: /usr/lib/python3.10/distutils/__pycache__/cygwinccompiler.cpython-310.pyc (8456B)
o
bc? @ s d Z ddlZddlZddlZddlmZmZmZ ddlZddl m
Z
ddlmZ ddl
mZmZmZmZ ddlmZ ddlmZ d d
ZG dd de
ZG d
d deZdZdZdZdd ZedZdd Zdd Z dd Z!dS )a distutils.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)PopenPIPEcheck_output)
UnixCCompiler)
write_file)DistutilsExecErrorCCompilerErrorCompileErrorUnknownFileError)LooseVersion)find_executablec C s t jd} | dkr>t j| d | d }|dkrdgS |dkr#dgS |d kr*d
gS |dkr1dgS |d
kr8dgS td| dS )zaInclude the appropriate MSVC runtime library if Python was built
with MSVC 7.0 or later.
zMSC v.
1300msvcr701310msvcr711400msvcr801500msvcr901600msvcr100zUnknown MS Compiler version %s N)sysversionfind
ValueError)msc_posmsc_ver r 0/usr/lib/python3.10/distutils/cygwinccompiler.py get_msvcr= s r" c @ sZ e Zd ZdZdZdZdZdZdZdZ dZ
dd
dZdd
Z dddZ
dddZdS )CygwinCCompilerz? Handles the Cygwin port of the GNU C compiler to Windows.
cygwinz.o.az.dllzlib%s%sz%s%sz.exer c C s t | ||| t \}}| d||f |tur!| d| t \| _| _| _ | | j
d| j| j| j f | jdkrCd| _nd| _| jdkrNd}nd }| jd
ddd
d| j|f d | jdkrodg| _
| d d S t | _
d S )Nz%Python's GCC status: %s (details: %s)zPython's pyconfig.h doesn't seem to support your compiler. Reason: %s. Compiling may fail because of undefined preprocessor macros.z: gcc %s, ld %s, dllwrap %s
z2.10.90gccdllwrap2.13-shared
-mdll -staticzgcc -mcygwin -O -Wallzgcc -mcygwin -mdll -O -Wallzg++ -mcygwin -O -Wallzgcc -mcygwinz%s -mcygwin %scompilercompiler_socompiler_cxx
linker_exe linker_so2.91.57msvcrtz,Consider upgrading to a newer version of gcc)r __init__check_config_hdebug_printCONFIG_H_OKwarnget_versionsgcc_version
ld_versiondllwrap_version
compiler_type
linker_dllset_executables
dll_librariesr" )selfverbosedry_runforcestatusdetails
shared_optionr r r! r3 b sN
zCygwinCCompiler.__init__c
C s |dks|dkr&z
| dd|d|g W dS ty% } zt|d}~ww z| | j| |d|g | W dS tyH } zt|d}~ww )z:Compiles the source by spawning GCC and windres if needed..rc.reswindresz-iz-oN)spawnr r r- )r@ objsrcextcc_argsextra_postargspp_optsmsgr r r! _compile s zCygwinCCompiler._compileNc C sH t |
pg }
t |pg }t |pg }|| j |dur|| jks)| jdkrtj|d }tjtj |\}}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&