HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/distutils/tests/__pycache__/test_install_scripts.cpython-311.pyc
�

��Vc�
����dZddlZddlZddlmZddlmZddlmZddl	m
Z
Gd�dejejej
��Zd	�Zed
kre
e����dSdS)z,Tests for distutils.command.install_scripts.�N)�install_scripts)�Distribution)�support)�run_unittestc��eZdZd�Zd�ZdS)�InstallScriptsTestCasec��t��}tjd���|jd<tjddd���|jd<t	|��}|�|j��|�|j��|�|j	��|�|j
��|���|�|j��|�|j��|�
|j	d��|�
|j
d��dS)Nz/foo/bar��
build_scripts�buildz/splat/funk��r�force�
skip_build�install)rr�DummyCommand�command_objr�assertFalserr�assertIsNone�	build_dir�install_dir�finalize_options�
assertTrue�assertEqual)�self�dist�cmds   �8D:\Python311\Lib\distutils\tests\test_install_scripts.py�test_default_settingsz,InstallScriptsTestCase.test_default_settingss,���~�~��$+�$8�$�%&�%&�%&����!�&-�&:�)���'�'�'����#�
�d�#�#�������#�#�#������(�(�(����#�-�(�(�(����#�/�*�*�*�����������	�"�"�"������'�'�'������
�3�3�3������-�8�8�8�8�8�c����|����g���fd�}|dd��|dd��|dd��|���}t��}tj����|jd	<tj|d
d
���|jd<t|��}|���|���tj	|��}�D]}|�
||���dS)
Nc�����|��ttj��|��d��}	|�|��|���dS#|���wxYw)N�w)�append�open�os�path�join�write�close)�name�text�f�expected�sources   ��r�write_scriptz>InstallScriptsTestCase.test_installation.<locals>.write_script+sk����O�O�D�!�!�!��R�W�\�\�&�$�/�/��5�5�A�
�����
�
�
����	�	�	�	�	�����	�	�	�	���s�A1�1Bz
script1.pyz@#! /usr/bin/env python2.3
# bogus script w/ Python sh-bang
pass
z
script2.pyz8#!/usr/bin/python
# bogus script w/ Python sh-bang
pass
zshell.shz1#!/bin/sh
# bogus shell script w/ sh-bang
exit 0
r
rr
rr)�mkdtemprrrrrr�runr&�listdir�assertIn)	rr0�targetrr�	installedr+r.r/s	       @@r�test_installationz(InstallScriptsTestCase.test_installation'sS������������	�	�	�	�	�	�	��\�%-�	/�	/�	/�	��\�%-�	/�	/�	/�	��Z�#-�	/�	/�	/��������~�~��$+�$8�v�$N�$N�$N����!�&-�&:�"���'�'�'����#�
�d�#�#�����������	�	�	��J�v�&�&�	��	+�	+�D��M�M�$�	�*�*�*�*�	+�	+r N)�__name__�
__module__�__qualname__rr7�r rrr
s2������9�9�9�,$+�$+�$+�$+�$+r rc�X�tj���t��S)N)�unittest�
TestLoader�loadTestsFromTestCaserr;r r�
test_suiter@Ns ���� � �6�6�7M�N�N�Nr �__main__)�__doc__r&r=�!distutils.command.install_scriptsr�distutils.corer�distutils.testsr�test.supportr�TempdirManager�LoggingSilencer�TestCaserr@r8r;r r�<module>rJs���2�2�	�	�	�	�����=�=�=�=�=�=�'�'�'�'�'�'�#�#�#�#�#�#�%�%�%�%�%�%�>+�>+�>+�>+�>+�W�3�$�4�%�.�>+�>+�>+�BO�O�O��z����L�����������r