H+!$ Z d Z ddlZddlZddlZddlmZ ddlmZ dZ G d de Z dS )zkdistutils.command.install_lib Implements the Distutils 'install_lib' command (install all Python modules). N)Command)DistutilsOptionErrorz.pyc f e Zd ZdZg dZg dZddiZd Zd Zd Z d Z d Zd Zd Z d Zd Zd ZdS )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]) 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]) skip-buildNzskip the build steps)r r r r r c Z d | _ d | _ d| _ d | _ d | _ d | _ d S )Nr )install_dir build_dirr r optimize skip_buildselfs J/opt/alt/python-internal/lib64/python3.11/distutils/command/install_lib.pyinitialize_optionszinstall_lib.initialize_options3 s1 c H | ddddddd | j d| _ | j d | _ t | j t sP t | j | _ | j d vrt d S # t t f$ r t d w xY wd 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 s r finalize_optionszinstall_lib.finalize_options<