관리-도구
편집 파일: cygwinccompiler.cpython-311.pyc
� �܋f�. � �F � d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z ddl mZ ddlm Z mZmZmZ ddlmZ ddlmZ dd lmZmZ ej d gdgdgd gdgdgdgdgej d� � � Zd� ZdZ G d� de� � Z G d� de� � ZdZdZ dZ!d� Z"d� Z#dZ$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)�check_output� )�RangeMap)�CCompilerError�CompileError�DistutilsExecError�DistutilsPlatformError)� write_file)� UnixCCompiler)�LooseVersion�suppress_known_deprecation�msvcr70�msvcr71�msvcr80�msvcr90�msvcr100�msvcr110�msvcr120�vcruntime140) i i ix i� i@ i� i il i� c � � t j dt j � � } t | � d� � � � }n# t $ r g cY S w xY w t | S # t $ r t d|� d�� � �w xY w)zaInclude the appropriate MSVC runtime library if Python was built with MSVC 7.0 or later. zMSC v\.(\d{4})r zUnknown MS Compiler version � ) �re�search�sys�version�int�group�AttributeError� _msvcr_lookup�KeyError� ValueError)�match�msc_vers �v/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/setuptools/_distutils/cygwinccompiler.py� get_msvcrr% 4 s� � � �I�'���5�5�E���e�k�k�!�n�n�%�%����� � � �� � � �����D��W�%�%��� D� D� D��B��B�B�B�C�C�C�D���s �"A �A�A�A$ �$BzxUnable to set runtime library search path on Windows, usually indicated by `runtime_library_dirs` parameter to Extensionc � � � e Zd ZdZdZdZdZdZdZdZ dZ dZd Zd� fd� Z ed� � � Zd � Z dd�Zd� Z� fd�Ze� fd�� � Z� xZS )�CygwinCCompilerz9Handles the Cygwin port of the GNU C compiler to Windows.�cygwinz.oz.az.dll.az.dllzlib%s%szcyg%s%sz.exeFc �J �� t � � � |||� � t � � \ }}| � d|� d|� d�� � |t ur| � d|� d�� � t j � dd� � | _ t j � dd � � | _ | j | _ d }| � | j � d�| j � d�| j � d�| j � d �| j � d|� ��� � t � � | _ d S )NzPython's GCC status: z (details: �)zCPython's pyconfig.h doesn't seem to support your compiler. Reason: z>. Compiling may fail because of undefined preprocessor macros.�CC�gcc�CXXzg++�-sharedz -mcygwin -O -Wallz -mcygwin -mdll -O -Wallz -mcygwinz -mcygwin ��compiler�compiler_so�compiler_cxx� linker_exe� linker_so)�super�__init__�check_config_h�debug_print�CONFIG_H_OK�warn�os�environ�get�cc�cxx� linker_dll�set_executablesr% � dll_libraries)�self�verbose�dry_run�force�status�details� shared_option� __class__s �r$ r6 zCygwinCCompiler.__init__V sL �� � ������'�5�1�1�1�(�*�*�������N��N�N�G�N�N�N�O�O�O���$�$��I�I�O�"�O� O� O� � � � �*�.�.��u�-�-����:�>�>�%��/�/����'���!� ������3�3�3��7�<�<�<� �H�8�8�8��'�,�,�,��/�D�D�]�D�D� � � � � '�[�[����� c � � t j dt d�� � t � � 5 t d� � cd d d � � S # 1 swxY w Y d S )Nz�gcc_version attribute of CygwinCCompiler is deprecated. Instead of returning actual gcc version a fixed value 11.2.0 is returned.� )� stacklevelz11.2.0)�warningsr: �DeprecationWarningr r )rC s r$ �gcc_versionzCygwinCCompiler.gcc_versiont s� � � � � X��� � � � � (� )� )� *� *���)�)� *� *� *� *� *� *� *� *� *� *� *� *���� *� *� *� *� *� *s �A�A�Ac � � |dv r> | � dd|d|g� � dS # t $ r}t |� � �d}~ww xY w | � | j |z |d|gz |z � � dS # t $ r}t |� � �d}~ww xY w)z:Compiles the source by spawning GCC and windres if needed.)�.rc�.res�windresz-iz-oN)�spawnr r r1 )rC �obj�src�ext�cc_args�extra_postargs�pp_opts�msgs r$ �_compilezCygwinCCompiler._compile� s� � ��/�!�!� (�� � �I�t�S�$��<�=�=�=�=�=��%� (� (� (�"�3�'�'�'����� (���� (�� � ��$�w�.�#�t�S�1A�A�N�R�� � � � �� &� (� (� (�"�3�'�'�'����� (���s* �"