HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/distutils/tests/__pycache__/test_bdist_dumb.cpython-310.opt-2.pyc
o

�iY�@s�	ddlZddlZddlZddlZddlmZddlmZddlm	Z	ddl
mZdZzddl
Z
dZWney>dZYnwGd	d
�d
ejejejej�Zdd�Zed
kr]ee��dSdS)�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__��</usr/local/lib/python3.10/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
Csp|��}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
|��}W|��n|��wttdttjj|���}dt
jdd�dg}	t
js�|	�dt
jj �|�|t|	��dS)NZfoozsetup.pyzfoo.py�#zMANIFEST.inzinclude foo.pyZREADME�z0.1Zxxx)�name�versionZ
py_modules�urlZauthorZ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�ZipFileZnamelist�close�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_SUPPORTr9�
__classcell__rrrrrs

rcCs
t�t�Sr)r=Z	makeSuiterrrrr�
test_suite]s
r@�__main__)r
r
r)r=Ztest.supportrZdistutils.corerZdistutils.command.bdist_dumbrZdistutils.testsrr%�zlibr>�ImportErrorZTempdirManagerZLoggingSilencerZEnvironGuardZTestCaserr@r:rrrr�<module>s2	��@�