3 vh|% @ 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 dZY nX G d d d ejeZdddZd d ZdS ) )glob)convert_pathN)six)mapfilterfilterfalse) Mixin2to3c @ s e Zd ZdddZdS )r Tc C s dS )z do nothingN )selffilesZdoctestsr r /usr/lib/python3.6/build_py.pyrun_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_optionsdistributionpackage_dataexclude_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_modulespackagesZ build_modulesZbuild_packagesbuild_package_datar r r Zbyte_compiler r Zget_outputs)r r r r run+ s zbuild_py.runc C s&