U Reo@ @ sd d Z ddlZddlZddlZddlZddlmZ ddlT ddl m Z ddlmZ G dd deZ dS ) zHdistutils.command.build_py Implements the Distutils 'build_py' command. N)Command)*)convert_path)logc @ s e Zd ZdZdddddgZddgZd diZd d Zdd Zdd Z dd Z dd Zdd Zdd Z dd Zdd Zdd Zdd Zd d! Zd"d# Zd$d% Zd2d'd(Zd)d* Zd+d, Zd-d. Zd/d0 Zd1S )3build_pyz5"build" pure Python modules (copy to build directory))z build-lib=dzdirectory to "build" (copy) to)compileczcompile .py to .pyc) no-compileNz!don't compile .py files [default])z optimize=Ozlalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0])forcefz2forcibly build everything (ignore file timestamps)r r r c C s4 d | _ d | _d | _d | _d | _d| _d| _d | _d S )Nr ) build_lib py_modulespackagepackage_datapackage_dirr optimizer self r /builddir/build/BUILDROOT/alt-python38-setuptools-58.3.0-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/setuptools/_distutils/command/build_py.pyinitialize_options s zbuild_py.initialize_optionsc C s | ddd | jj| _| jj| _| jj| _i | _| jjr^| jj D ]\}}t|| j|<