B v5* @ sL d Z ddlZddlZddlZddlmZ ddlmZ dZ G dd deZ dS )zkdistutils.command.install_lib Implements the Distutils 'install_lib' command (install all Python modules). N)Command)DistutilsOptionErrorz.pyc @ s e Zd ZdZdddddddgZd d dgZdd iZd d Zdd Zdd Z dd Z dd Zdd Zdd Z dd Zdd Zdd Zd!S )"install_libz7install all Python modules (extensions and pure Python))zinstall-dir=dzdirectory to install to)z build-dir=bz'build directory (where to install from))forcefz-force installation (overwrite existing files))compileczcompile .py to .pyc [default])z no-compileNzdon't compile .py files)z optimize=Ozlalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0])z skip-buildNzskip the build stepsr r z skip-buildz no-compilec C s( d | _ d | _d| _d | _d | _d | _d S )Nr )install_dir build_dirr r optimize skip_build)self r /builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el9.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/_distutils/command/install_lib.pyinitialize_options3 s zinstall_lib.initialize_optionsc C s | ddddddd | jd kr&d| _| jd kr6d | _t| jtsyt| j| _| jd kr^tW n ttfk r tdY nX d S )Ninstall) build_libr )r r )r r )r r )r r )r r TF)r zoptimize must be 0, 1, or 2)set_undefined_optionsr r isinstanceintAssertionError ValueErrorr )r r r r finalize_options<