Your IP : 3.141.25.125
U
�Qab|% � @ s� d dl m Z d dlmZ d dlm mZ d dlZd dlZd dl Z d dl
Z
d dlZd dl
Z
d dlmZ d dlmZmZmZ zd dlmZ W n" ek
r� G dd� d�ZY nX G d d
� d
eje�Zddd�Zd
d� ZdS )� )�glob)�convert_pathN)�six)�map�filter�filterfalse)� Mixin2to3c @ s e Zd Zddd�ZdS )r Tc C s dS )z
do nothingN� )�self�filesZdoctestsr r �?/usr/lib/python3.8/site-packages/setuptools/command/build_py.py�run_2to3 s zMixin2to3.run_2to3N)T)�__name__�
__module__�__qualname__r
r r r r r s r c @ s� e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� Zedd� �Zd S )!�build_pyaX Enhanced 'build_py' command that includes data files with packages
The data files are specified via a 'package_data' argument to 'setup()'.
See 'setuptools.dist.Distribution' for more details.
Also, this version of the 'build_py' command allows you to specify both
'py_modules' and 'packages' in the same setup operation.
c C sF t j�| � | jj| _| jjp i | _d| jkr6| jd= g | _g | _d S )N�
data_files) �origr �finalize_options�distribution�package_data�exclude_package_data�__dict__�_build_py__updated_files�_build_py__doctests_2to3�r
r r r r ! s
�
zbuild_py.finalize_optionsc C sx | j s| jsdS | j r| �� | jr4| �� | �� | �| jd� | �| jd� | �| jd� | �t j
j| dd�� dS )z?Build modules, packages, and copy data files to build directoryNFTr )Zinclude_bytecode)Z
py_modules�packagesZ
build_modulesZbuild_packages�build_package_datar
r r Zbyte_compiler r Zget_outputsr r r r �run+ s zbuild_py.runc C s&