관리-도구
편집 파일: build_py.cpython-36.pyc
3 9��f|% � @ s� d dl m Z d dlmZ d dljjZd dlZd dlZd dl Z d dl Z d dlZd dl Z d dlmZ d dlmZmZmZ yd 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.6/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 jj| � | 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 s| | j r| j rdS | j r"| j� | jr8| j� | j� | j| jd� | j| jd� | j| jd� | jt 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_outputs)r r r r �run+ s zbuild_py.runc C s&