B
‘–Re*B ã @ sâ d Z ddlZddlZddlZddlmZmZmZ ddlZddl m
Z
ddlmZ ddl
mZmZmZmZ ddlmZ ddlmZ d d
„ ZG dd„ de
ƒZG d
d„ deƒZdZdZdZdd„ Ze d¡Zdd„ 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)ÚPopenÚPIPEÚcheck_output)Ú
UnixCCompiler)Ú
write_file)ÚDistutilsExecErrorÚCCompilerErrorÚCompileErrorÚUnknownFileError)ÚLooseVersion)Úfind_executablec C s€ t j d¡} | dkr|t j| d | d … }|dkr8dgS |dkrFdgS |d krTd
gS |dkrbdgS |d
krpdgS td| ƒ‚dS )zaInclude the appropriate MSVC runtime library if Python was built
with MSVC 7.0 or later.
zMSC v.éÿÿÿÿé é
Z1300Zmsvcr70Z1310Zmsvcr71Z1400Zmsvcr80Z1500Zmsvcr90Z1600Zmsvcr100zUnknown MS Compiler version %s N)ÚsysÚversionÚfindÚ
ValueError)Zmsc_posZmsc_ver© r ú›/builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/_distutils/cygwinccompiler.pyÚ get_msvcr? s r c
@ sR e Zd ZdZdZdZdZdZdZdZ dZ
dd
d„Zdd
„ Zddd„Z
ddd„ZdS )ÚCygwinCCompilerz? Handles the Cygwin port of the GNU C compiler to Windows.
Úcygwinz.oz.az.dllzlib%s%sz%s%sz.exer c C sH t | |||¡ tƒ \}}| d||f ¡ |tk rB| d| ¡ tj dd¡| _ tj dd¡| _
d| j krÎtƒ \| _| _
| _| | jd| j| j
| jf ¡ | j
dkr²| j | _nd | _| j
d
krÈd}qÚd}n| j | _d}| jd
| j d| j d
| j
d| j d| j|f d d| j kr<| jdkr