
    |g;                         d Z ddlZddlZddlZddlZddlmZ ddlmZ dZ	 ej                  d      d	        Z G d
 d      Zy)zdevelop tests    N)Distribution   )contextsz7from setuptools import setup

setup(py_modules=['hi'])
function)scopec              #   N  K   | dz  j                  d      5 }|j                  t               d d d        | dz  j                  d      5 }|j                  d       d d d        | j                         5  |  d d d        y # 1 sw Y   UxY w# 1 sw Y   3xY w# 1 sw Y   y xY ww)Nsetup.pywhi.pyz1
)openwriteSETUP_PYas_cwd)tmpdirfs     \/var/www/html/pythonbot/venv/lib/python3.12/site-packages/setuptools/tests/test_bdist_egg.pysetup_contextr      s     
:
	#	#C	( A	
7
	 	 	% 		  	   sK   B%BB%	BB%3B8	B%B
B%BB%B"B%c                       e Zd Zd Zej
                  j                  ej                  j                  dd      d      d        Z
y)Testc                    t        t        ddgddg            }t        j                  t        j                  j                  dd             t        j                         5  |j                          |j                          d d d        t        j                  d      \  }t        j                  d	|      sJ y # 1 sw Y   9xY w)
Nr	   	bdist_eggfoohi)script_namescript_argsname
py_modulesbuildsrcdistzfoo-0.0.0-py[23].\d+.egg$)r   dictosmakedirspathjoinr   quietparse_command_linerun_commandslistdirrematch)selfr   user_overrider    contents        r   test_bdist_eggzTest.test_bdist_egg   s    &(M 6	
 	BGGLL%01^^ 	 ##%	 
 JJv&	xx4g>>>	  	 s   "!B;;CPYTHONDONTWRITEBYTECODEFzByte code disabled)reasonc                    t        t        dddgdg            }t        j                         5  |j	                          |j                          d d d        t        j                  d      \  }t        j                  j                  d|      }t        j                  |      }t        d |j                  D              }d|v sJ d	|vsJ y # 1 sw Y   ~xY w)
Nr	   r   z--exclude-source-filesr   )r   r   r   r    c              3   4   K   | ]  }|j                     y w)N)filename).0zis     r   	<genexpr>z1Test.test_exclude_source_files.<locals>.<genexpr>C   s     8RR[[8s   zhi.pycr   )r   r!   r   r&   r'   r(   r"   r)   r$   r%   zipfileZipFilelistfilelist)r,   r   r-   r    	dist_namedist_filenamezipnamess           r   test_exclude_source_fileszTest.test_exclude_source_files1   s    
 &(*BC 6
 ^^ 	 ##%	  jj(VY7oom,83<<885   e###	  	 s   !CCN)__name__
__module____qualname__r/   pytestmarkxfailr"   environgetr@        r   r   r      sE    ?$ [[


0%8#  $	$rJ   r   )__doc__r"   r*   r8   rD   setuptools.distr    r   r   fixturer   r   rI   rJ   r   <module>rO      sJ     	 	   (  j! "'$ '$rJ   