o
    NZŽh 	  ã                   @   sV   d Z ddlZddlZddlmZ ddlmZ ddlZej 	d¡G dd„ dej
ƒƒZdS )z)Tests for distutils.command.install_data.é    N)Úinstall_data)ÚsupportZsave_envc                   @   s   e Zd Zdd„ ZdS )ÚTestInstallDatac                 C   s°  |   ¡ \}}t|ƒ}tj |d¡ |_}tj |d¡}|  |d¡ tj |d¡}tj |d¡}|  |d¡ t |¡d }|  |d¡ |||gf|g|_	| 
¡ |||gf|gksYJ ‚| ¡  | ¡  t| ¡ ƒdkskJ ‚tj |¡d }	tj tj ||	¡¡s€J ‚tj |¡d }
tj tj ||
¡¡s•J ‚tj |¡d }tj tj ||¡¡sªJ ‚g |_d	|_| ¡  | ¡  t| ¡ ƒdksÂJ ‚tj tj ||	¡¡sÏJ ‚tj tj ||
¡¡sÜJ ‚tj tj ||¡¡séJ ‚g |_tj |d
¡|_tj |d¡}tj |jd¡}|  |d¡ |||gf|d|gf|g fg|_	| ¡  | ¡  t| ¡ ƒdks,J ‚tj tj ||	¡¡s:J ‚tj tj ||
¡¡sHJ ‚tj tj ||¡¡sVJ ‚d S )NÚinstÚoneZxxxÚinst2ÚtwoÚthreeé   éÿÿÿÿTÚrootÚinst5ÚfourÚxxé   )Zcreate_distr   ÚosÚpathÚjoinZinstall_dirÚ
write_fileÚpathlibÚPathZ
data_filesZ
get_inputsZensure_finalizedÚrunÚlenZget_outputsÚsplitÚexistsZoutfilesZwarn_dirr   )ÚselfZpkg_dirÚdistÚcmdr   r   r   r   r	   ZrthreeZrtwoZroner   r   © r   ú\/var/www/auris/lib/python3.10/site-packages/setuptools/_distutils/tests/test_install_data.pyÚtest_simple_run   sR     zTestInstallData.test_simple_runN)Ú__name__Ú
__module__Ú__qualname__r    r   r   r   r   r      s    r   )Ú__doc__r   r   Zdistutils.command.install_datar   Zdistutils.testsr   ZpytestÚmarkZusefixturesZTempdirManagerr   r   r   r   r   Ú<module>   s    


ÿ