File: //usr/local/lib/python3.10/distutils/tests/__pycache__/test_bdist_rpm.cpython-310.opt-2.pyc
o
�i� � @ s� d dl Z d dlZd dlZd dlmZmZ d dlmZ d dlm Z d dl
mZ d dlm
Z
dZG dd � d ejejeje j�Zd
d� ZedkrMee� � dS dS )
� N)�run_unittest�
requires_zlib)�Distribution)� bdist_rpm)�support)�find_executablez�from distutils.core import setup
import foo
setup(name='foo', version='0.1', py_modules=['foo'],
url='xxx', author='xxx', author_email='xxx')
c s� e Zd Z� fdd�Z� fdd�Ze�ej� d�d�e
� e�ed�du d �e�ed
�du d�dd
� ����Z
e�ej� d�d�e
� e�ed�du d �e�ed
�du d�dd� ����Z� ZS )�BuildRpmTestCasec s\ zt j�d� W n ty t�d��w tt| ��� t �
� | _t jt jd d � f| _
d S )NzUTF-8z(sys.executable is not encodable to UTF-8)�sys�
executable�encode�UnicodeEncodeError�unittestZSkipTest�superr �setUp�os�getcwd�old_location�argv�old_sys_argv��self�� __class__� �;/usr/local/lib/python3.10/distutils/tests/test_bdist_rpm.pyr s
�
zBuildRpmTestCase.setUpc s>