a h% @ s d dl m Z d dlmZ d dlm mZ d dlZd dlZd dl Z d dl Z d dlZd dl Z d dlZzd dlmZ W n ey G dd dZY n0 dd ZG d d d ejeZdddZd d ZdS ) )glob)convert_pathN) Mixin2to3c @ s e Zd ZdddZdS )r Tc C s dS )z do nothingN )selffilesZdoctestsr r ?/usr/lib/python3.9/site-packages/setuptools/command/build_py.pyrun_2to3 s zMixin2to3.run_2to3N)T)__name__ __module____qualname__r r r r r r s r c C s t | t | jtjB d S N)oschmodstatst_modeS_IWRITE)targetr r r make_writable 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| jv r6| jd= g | _g | _d S )N data_files) origr finalize_optionsdistributionpackage_dataexclude_package_data__dict___build_py__updated_files_build_py__doctests_2to3r 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_modulespackagesZ build_modulesZbuild_packagesbuild_package_datar r r Zbyte_compiler r Zget_outputsr r r r run- s zbuild_py.runc C s&