Ë
    nûàgÁ
  ã                   ó°   — d Z ddlZddlZddlmZ ddlmZmZmZm	Z	m
Z
 ddlmZ ddlZ ej                  d¬«      d„ «       Z G d	„ d
ej                   «      Zy)z$Tests for distutils.cygwinccompiler.é    N)Ú	sysconfig)ÚCONFIG_H_NOTOKÚCONFIG_H_OKÚCONFIG_H_UNCERTAINÚcheck_config_hÚ	get_msvcr)ÚsupportT)Úautousec                 ó  — | j                   }t        j                  j                  |j	                  «       d«      |_        |j                  t        d|j                  «       |j                  t        dt        j                  «       y )Nzpython.hÚget_config_h_filenameÚversion)ÚinstanceÚosÚpathÚjoinÚmkdtempÚpython_hÚsetattrr   Ú_get_config_h_filenameÚsysr   )ÚrequestÚmonkeypatchÚdistutils_managed_tempdirÚselfs       ún/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/setuptools/_distutils/tests/test_cygwinccompiler.pyÚstuffr      sX   € à×Ñ€DÜ—G‘G—L‘L §¡£°Ó<€D„MØ×Ñœ	Ð#:¸D×<WÑ<WÔXØ×Ñœ˜Y¬¯©Õ4ó    c                   ó   — e Zd Zd„ Zej
                  j                  d«      ej
                  j                  d«      d„ «       «       Zej
                  j                  d«      d„ «       Zd„ Z	d„ Z
ej
                  j                  d«      d„ «       Zy	)
ÚTestCygwinCCompilerc                 ó   — | j                   S ©N)r   ©r   s    r   r   z*TestCygwinCCompiler._get_config_h_filename   s   € Ø�}‰}Ðr   zsys.platform != "cygwin"z,not os.path.exists("/usr/lib/libbash.dll.a")c                 óª   — ddl m}  |«       }d}|j                  dg|«      }|€J ‚t        j                  j                  |«      sJ ‚|d|d›d�k(  sJ ‚y )Nr   ©ÚCygwinCCompilerÚbashz/usr/libz/usr/lib/libÚsz.dll.a)Údistutils.cygwinccompilerr%   Úfind_library_filer   r   Úexists)r   r%   ÚcompilerÚ	link_nameÚlinkable_files        r   Útest_find_library_filez*TestCygwinCCompiler.test_find_library_file   sc   € õ 	>á"Ó$ˆØˆ	Ø ×2Ñ2°J°<ÀÓKˆØÐ(Ð(Ð(Ü�w‰w�~‰~˜mÔ,Ð,Ð,Ø ,¨y¸¨m¸6Ð BÒBÐBÑBr   c                 óJ   — ddl m}  |«       }|j                  d«      g k(  sJ ‚y )Nr   r$   z/foo)r(   r%   Úruntime_library_dir_option©r   r%   r+   s      r   Útest_runtime_library_dir_optionz3TestCygwinCCompiler.test_runtime_library_dir_option*   s&   € å=á"Ó$ˆØ×2Ñ2°6Ó:¸bÒ@Ð@Ñ@r   c                 óP  — dt         _        t        «       d   t        k(  sJ ‚dt         _        t        «       d   t        k(  sJ ‚| j                  | j                  d«       t        «       d   t        k(  sJ ‚| j                  | j                  d«       t        «       d   t        k(  sJ ‚y )NzX2.6.1 (r261:67515, Dec  6 2008, 16:42:21) 
[GCC 4.0.1 (Apple Computer, Inc. build 5370)]r   zsomething without the *CC wordÚxxxzxxx __GNUC__ xxx)r   r   r   r   r   Ú
write_filer   r   r"   s    r   Útest_check_config_hz'TestCygwinCCompiler.test_check_config_h1   s�   € ð7ô 	Œô
 Ó Ñ"¤kÒ1Ð1Ð1ð 7ŒŒô Ó Ñ"Ô&8Ò8Ð8Ð8ð 	�‰˜Ÿ™ uÔ-ÜÓ Ñ"¤nÒ4Ð4Ð4ð 	�‰˜Ÿ™Ð'9Ô:ÜÓ Ñ"¤kÒ1Ð1Ñ1r   c                 ó"   — t        «       g k(  sJ ‚y r!   )r   r"   s    r   Útest_get_msvcrz"TestCygwinCCompiler.test_get_msvcrI   s   € Ü‹{˜bÒ Ð Ñ r   c                 ó:   — ddl m}  |«       }|j                  €J ‚y )Nr   r$   )r(   r%   Údll_librariesr1   s      r   Útest_dll_libraries_not_nonez/TestCygwinCCompiler.test_dll_libraries_not_noneL   s   € å=á"Ó$ˆØ×%Ñ%Ð1Ð1Ñ1r   N)Ú__name__Ú
__module__Ú__qualname__r   ÚpytestÚmarkÚskipifr.   r2   r6   r8   r;   © r   r   r   r      sš   „ òð ‡[�[×ÑÐ2Ó3Ø‡[�[×ÑÐFÓGñCó Hó 4ðCð ‡[�[×ÑÐ2Ó3ñAó 4ðAò2ò0!ð ‡[�[×ÑÐ2Ó3ñ2ó 4ñ2r   r   )Ú__doc__r   r   Ú	distutilsr   r(   r   r   r   r   r   Údistutils.testsr	   r?   Úfixturer   ÚTempdirManagerr   rB   r   r   ú<module>rH      sT   ðÙ *ã 	Û 
Ý ÷õ õ $ã ð €‡�˜Ôñ5ó ð5ô72˜'×0Ñ0õ 72r   