Ë
    nûàgi  ã                   óP   — d Z ddlZddlZddlmZ ddlmZ ddlmZ  G d„ d«      Z	y)	zinstall_scripts testsé    N)Úinstall_scripts)ÚDistributioné   )Úcontextsc                   ó¼  — e Zd Z edddgid¬«      ZdZdZdZdd
„Ze	j                  j                  ej                  dk(  d¬«      d„ «       Ze	j                  j                  ej                  dk7  d¬«      d„ «       Ze	j                  j                  ej                  dk(  d¬«      d„ «       Ze	j                  j                  ej                  dk7  d¬«      d„ «       Zy	)ÚTestInstallScriptsÚfooÚconsole_scriptszfoo=foo:fooz0.0)ÚnameÚentry_pointsÚversionz%/usr/dummy-test-path/local/bin/pythonz/usr/bin/env dummy-test-pythonz6C:\Dummy Test Path\Program Files\Python 3.6\python.exeNc                 ó&  — t        | j                  «      }d|_        t        |«      }||_        |�|j                  d«      }||_        |j                  «        t        j                  «       5  |j                  «        d d d «       y # 1 sw Y   y xY w)Nzsetup.pyÚbuild_scripts)r   ÚsettingsÚscript_namer   Úinstall_dirÚget_finalized_commandÚ
executableÚensure_finalizedr   ÚquietÚrun)Úselfr   r   ÚdistÚcmdÚbss         úc/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/setuptools/tests/test_install_scripts.pyÚ_run_install_scriptsz'TestInstallScripts._run_install_scripts   sz   € Ü˜DŸM™MÓ*ˆØ%ˆÔÜ˜dÓ#ˆØ%ˆŒØÐ!Ø×*Ñ*¨?Ó;ˆBØ&ˆBŒMØ×ÑÔÜ�^‰^Óñ 	Ø�G‰GŒI÷	÷ 	ñ 	ús   Á-BÂBÚwin32znon-Windows only)Úreasonc                 ó~  — d| j                   › d�}|j                  d| j                   «       |j                  «       5  | j                  t	        |«      «       t        t	        |j                  d«      «      dd¬«      5 }|j                  «       }ddd«       ddd«       |k(  sJ ‚y# 1 sw Y   ŒxY w# 1 sw Y   ŒxY w)	zt
        Ensure that shebang is not quoted on Unix when getting the Python exe
        from sys.executable.
        ú#!ú
úsys.executabler	   Úrúutf-8©ÚencodingN)Úunix_exeÚsetattrÚas_cwdr   ÚstrÚopenÚjoinÚreadline©r   ÚtmpdirÚmonkeypatchÚexpectedÚfÚactuals         r   Ú!test_sys_executable_escaping_unixz4TestInstallScripts.test_sys_executable_escaping_unix#   s§   € ð ˜Ÿ™� bÐ)ˆØ×ÑÐ,¨d¯m©mÔ<Ø�]‰]‹_ñ 	&Ø×%Ñ%¤c¨&£kÔ2Ü”c˜&Ÿ+™+ eÓ,Ó-¨s¸WÔEð &ÈØŸ™›�÷&÷	&ð ˜Ò!Ð!Ñ!÷&ð &ú÷	&ð 	&úó$   ½AB3Á>B'ÂB3Â'B0	Â,B3Â3B<zWindows onlyc                 ó~  — d| j                   › d�}|j                  d| j                   «       |j                  «       5  | j                  t	        |«      «       t        t	        |j                  d«      «      dd¬«      5 }|j                  «       }ddd«       ddd«       |k(  sJ ‚y# 1 sw Y   ŒxY w# 1 sw Y   ŒxY w)	z‹
        Ensure that shebang is quoted on Windows when getting the Python exe
        from sys.executable and it contains a space.
        ú#!"ú"
r#   úfoo-script.pyr$   r%   r&   N)Ú	win32_exer)   r*   r   r+   r,   r-   r.   r/   s         r   Ú"test_sys_executable_escaping_win32z5TestInstallScripts.test_sys_executable_escaping_win321   s©   € ð ˜Ÿ™Ð(¨Ð,ˆØ×ÑÐ,¨d¯n©nÔ=Ø�]‰]‹_ñ 	&Ø×%Ñ%¤c¨&£kÔ2Ü”c˜&Ÿ+™+ oÓ6Ó7¸ÀwÔOð &ÐSTØŸ™›�÷&÷	&ð ˜Ò!Ð!Ñ!÷&ð &ú÷	&ð 	&úr6   c                 ó\  — d| j                   › d�}|j                  «       5  | j                  t        |«      | j                   «       t	        t        |j                  d«      «      dd¬«      5 }|j                  «       }ddd«       ddd«       |k(  sJ ‚y# 1 sw Y   ŒxY w# 1 sw Y   ŒxY w)z‹
        Ensure that shebang on Unix is not quoted, even when
        a value with spaces
        is specified using --executable.
        r!   r"   r	   r$   r%   r&   N)Úunix_spaces_exer*   r   r+   r,   r-   r.   ©r   r0   r2   r3   r4   s        r   Ú)test_executable_with_spaces_escaping_unixz<TestInstallScripts.test_executable_with_spaces_escaping_unix?   s�   € ð ˜×,Ñ,Ð-¨RÐ0ˆØ�]‰]‹_ñ 	&Ø×%Ñ%¤c¨&£k°4×3GÑ3GÔHÜ”c˜&Ÿ+™+ eÓ,Ó-¨s¸WÔEð &ÈØŸ™›�÷&÷	&ð ˜Ò!Ð!Ñ!÷&ð &ú÷	&ð 	&ús$   ¡AB"Á-BÁ>B"ÂB	ÂB"Â"B+c                 óh  — d| j                   › d�}|j                  «       5  | j                  t        |«      d| j                   z   dz   «       t	        t        |j                  d«      «      dd¬«      5 }|j                  «       }ddd«       ddd«       |k(  sJ ‚y# 1 sw Y   ŒxY w# 1 sw Y   ŒxY w)	z�
        Ensure that shebang on Windows is quoted when
        getting a path with spaces
        from --executable, that is itself properly quoted.
        r8   r9   ú"r:   r$   r%   r&   N)r;   r*   r   r+   r,   r-   r.   r?   s        r   Ú"test_executable_arg_escaping_win32z5TestInstallScripts.test_executable_arg_escaping_win32M   s¤   € ð ˜Ÿ™Ð(¨Ð,ˆØ�]‰]‹_ñ 	&Ø×%Ñ%¤c¨&£k°3¸¿¹Ñ3GÈ#Ñ3MÔNÜ”c˜&Ÿ+™+ oÓ6Ó7¸ÀwÔOð &ÐSTØŸ™›�÷&÷	&ð ˜Ò!Ð!Ñ!÷&ð &ú÷	&ð 	&ús$   ¡AB(Á3BÂB(ÂB%	Â!B(Â(B1)N)Ú__name__Ú
__module__Ú__qualname__Údictr   r(   r>   r;   r   ÚpytestÚmarkÚskipifÚsysÚplatformr5   r<   r@   rC   © ó    r   r   r      sü   „ ÙØØ'¨-¨Ð9Øô€Hð
 7€HØ6€OØL€Ió
ð ‡[�[×Ñ˜Ÿ™¨Ñ/Ð8JÐÓKñ"ó Lð"ð ‡[�[×Ñ˜Ÿ™¨Ñ/¸ÐÓGñ"ó Hð"ð ‡[�[×Ñ˜Ÿ™¨Ñ/Ð8JÐÓKñ"ó Lð"ð ‡[�[×Ñ˜Ÿ™¨Ñ/¸ÐÓGñ"ó Hñ"rN   r   )
Ú__doc__rK   rH   Ú"setuptools.command.install_scriptsr   Úsetuptools.distr   Ú r   r   rM   rN   r   ú<module>rS      s#   ðÙ ã 
ã å >Ý (å ÷L"ò L"rN   