HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/python38/lib/python3.8/distutils/tests/__pycache__/test_bdist_dumb.cpython-38.opt-2.pyc
U

�i�_Y�@s�ddlZddlZddlZddlZddlmZddlmZddlm	Z	ddl
mZdZzddl
Z
dZWnek
r|dZYnXGd	d
�d
ejejejej�Zdd�Zed
kr�ee��dS)�N)�run_unittest)�Distribution)�
bdist_dumb)�supportz�from distutils.core import setup
import foo

setup(name='foo', version='0.1', py_modules=['foo'],
      url='xxx', author='xxx', author_email='xxx')

TFcs<eZdZ�fdd�Z�fdd�Ze�ed�dd��Z�Z	S)�BuildDumbTestCasecs2tt|���t��|_tjtjdd�f|_dS�N)	�superr�setUp�os�getcwd�old_location�sys�argv�old_sys_argv��self��	__class__��>/opt/python38/lib/python3.8/distutils/tests/test_bdist_dumb.pyr	"s
zBuildDumbTestCase.setUpcs>t�|j�|jdt_|jdtjdd�<tt|���dS)Nr�)	r
�chdirrrr
rrr�tearDownrrrrr'szBuildDumbTestCase.tearDownzNeed zlib support to runc
Csj|��}tj�|d�}t�|�|�|dft�|�|dfd�|�|dfd�|�|dfd�tdd	dgd
d
d
d��}d|_t�	|�dgt
_t|�}d|_
|��|��t�tj�|d
��}d|��|jf}|�||g�t�tj�d
|��}z|��}W5|��Xttdttjj|���}dt
jdd�dg}	t
j�sV|	�dt
jj �|�|t|	��dS)NZfoozsetup.pyzfoo.py�#zMANIFEST.inzinclude foo.pyZREADME�z0.1Zxxx)�name�versionZ
py_modulesZurlZauthorZauthor_email�zip�distz	%s.%s.zipzfoo-0.1-py%s.%s.egg-info�z
foo.%s.pyc)!�mkdtempr
�path�join�mkdirZ
write_file�SETUP_PYrZscript_namerr
rr�formatZensure_finalized�run�listdirZget_fullnameZ	plat_nameZassertEqual�zipfile�ZipFile�closeZnamelist�sorted�filter�map�basename�version_info�dont_write_bytecode�append�implementation�	cache_tag)
rZtmp_dirZpkg_dirr�cmdZdist_created�base�fp�contentsZwantedrrr�test_simple_built-s@
�

z#BuildDumbTestCase.test_simple_built)
�__name__�
__module__�__qualname__r	r�unittestZ
skipUnless�ZLIB_SUPPORTr8�
__classcell__rrrrrs
rcCs
t�t�Sr)r<Z	makeSuiterrrrr�
test_suite]sr?�__main__)r
r
r(r<Ztest.supportrZdistutils.corerZdistutils.command.bdist_dumbrZdistutils.testsrr$�zlibr=�ImportErrorZTempdirManagerZLoggingSilencerZEnvironGuardZTestCaserr?r9rrrr�<module>s*	
�@